Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 91790 invoked from network); 10 May 2005 15:06:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2005 15:06:27 -0000 Received: (qmail 46546 invoked by uid 500); 10 May 2005 15:08:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 46496 invoked by uid 500); 10 May 2005 15:08:32 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 46466 invoked by uid 99); 10 May 2005 15:08:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of bjorn.lilja@capgemini.com designates 198.184.232.82 as permitted sender) Received: from mxeorb01.capgemini.com (HELO mxeorb01.capgemini.com) (198.184.232.82) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 10 May 2005 08:08:31 -0700 Received: from mxiorb01.capgemini.com (crayfish [205.223.236.82]) by mxeorb01.capgemini.com (8.13.3/8.13.3) with ESMTP id j4AF4wiO026776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 10 May 2005 17:04:59 +0200 (MEST) Received: from mxiorb01.capgemini.com (localhost [127.0.0.1]) by mxiorb01.capgemini.com (8.13.3/8.13.3) with ESMTP id j4AF4wlf007201 for ; Tue, 10 May 2005 17:04:58 +0200 (MEST) Received: from mailsweeper2.capgemini.se ([193.234.248.12]) by mxiorb01.capgemini.com (8.13.3/8.13.3) with ESMTP id j4AF4wgS007196 for ; Tue, 10 May 2005 17:04:58 +0200 (MEST) Received: from ore-mail1.ne.ad.ner.capgemini.com (unverified) by mailsweeper2.capgemini.se (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Tue, 10 May 2005 17:01:07 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Strange results using QueryParser (?) Date: Tue, 10 May 2005 17:04:58 +0200 Message-ID: <3C02C973EF7D4045A1BD714205286A7C01096EF9@ore-mail1.ne.ad.ner.capgemini.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Strange results using QueryParser (?) Thread-Index: AcVVcaG5O4IA+J8ITbeizFFsMcIe/A== From: "Lilja, Bjorn" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, We have implemented a lucene search like this: registry =3D LocateRegistry=2EgetRegistry(RMIAddress, RMIPort); searchables =3D new Searchable[] { (Searchable) registry= =2Elookup(RMIIndexName)}; queryParser =3D new QueryParser(defaultField, new StandardAnalyzer()); Query query =3D queryParser=2Eparse(queryString); // queryString is= something the user specified, like hello* Searcher searcher =3D new MultiSearcher(searchables); hits =3D searcher=2Esearch(query); There is furthermore a field in the index called documenttype=2E The problem is this, when searching for "documenttype:Specifikation" I get= the expected results, but when searching for "documenttype:blankett/mall"= I get none=2E I can show, using a class simply displaying the index= contents, that there is actually a field called documenttype containing= the value "blankett/mall" in several cases=2E I first suspected the "/"-sign to be the cause of the problem, but= searching for "documenttype:blankett/ma*" actually returns the expected= result=2E I understand that there are several different query types, but should not= the queryParser create a correct query for me? I am quite stuck here and= would truly appreciate any help possible!=0D Best regards, Bj=F6rn Lilja _____________________________________________________________ Bj=F6rn Lilja | Technology Services | Consultant Tel: +46 8 5368 5000 Mob: +46 702 651 027 Capgemini www=2Ese=2Ecapgemini=2Ecom | We help companies and their employees to= achieve more=2E =0D This message contains information that may be privileged or confidential= and is the property of the Capgemini Group=2E It is intended only for the= person to whom it is addressed=2E If you are not the intended recipient, = you are not authorized to read, print, retain, copy, disseminate, = distribute, or use this message or any part thereof=2E If you receive this= message in error, please notify the sender immediately and delete all = copies of this message=2E --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org