Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 54025 invoked from network); 2 Feb 2005 23:17:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 23:17:07 -0000 Received: (qmail 23983 invoked by uid 500); 2 Feb 2005 23:17:03 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 23962 invoked by uid 500); 2 Feb 2005 23:17:03 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 23947 invoked by uid 99); 2 Feb 2005 23:17:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from lyra.lunarpages.com (HELO lyra.lunarpages.com) (64.235.230.140) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 15:17:01 -0800 Received: from pd95355b5.dip.t-dialin.net ([217.83.85.181] helo=Kelvin) by lyra.lunarpages.com with esmtpa (Exim 4.44) id 1CwTk0-0002n6-IP for lucene-user@jakarta.apache.org; Wed, 02 Feb 2005 15:16:57 -0800 From: Kelvin Tan To: Lucene Users List X-Mailer: Barca 1.1 (840) - Licensed Version Date: Thu, 3 Feb 2005 00:16:41 +0100 Message-ID: <20052301641.246901@Kelvin> In-Reply-To: <05d601c5097b$bb7d36e0$7703d00a@hypermedia.com> Subject: Re: QueryParser Help Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - lyra.lunarpages.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - relevanz.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Can you provide more information? Your syntax looks ok. Is it possible that= one of the docs have been deleted? Sounds stupid, but have you tried= searching via a manual query, or using one of the Lucene index browsers? Kelvin On Wed, 2 Feb 2005 18:05:47 -0500, Luke Shannon wrote: >=A0Hello; > >=A0Getting squinted with Query Parsing. =A0I have a questions: > >=A0Query query =3D MultiFieldQueryParser >=A0.parse("mario", new String[] { "name", "desc" }, new int[] { >=A0MultiFieldQueryParser.NORMAL_FIELD, >=A0MultiFieldQueryParser.NORMAL_FIELD }, new StandardAnalyzer()); >=A0IndexSearcher searcher =3D new IndexSearcher(fsDir); Hits hits =3D >=A0searcher.search(query); >=A0System.out.printing("Keywords : " + hits.length()+ " " + >=A0query.toString()); assertEquals(2, hits.length()); > >=A0This test is successful. > >=A0But, I know "name" contains 2 documents, I also know "desc" >=A0contains one. This may be a dumb question but why does Hits not >=A0contain pointers to 3 results (1 from name, 2 from desc)? > >=A0Thanks > >=A0Luke > > >=A0-------------------------------------------------------------------- >=A0- To unsubscribe, e-mail: lucene-user- >=A0unsubscribe@jakarta.apache.org For additional commands, e-mail: >=A0lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org