Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 18795 invoked from network); 21 Jun 2010 11:12:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 11:12:43 -0000 Received: (qmail 86724 invoked by uid 500); 21 Jun 2010 11:12:43 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 86232 invoked by uid 500); 21 Jun 2010 11:12:40 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 86225 invoked by uid 99); 21 Jun 2010 11:12:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 11:12:38 +0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=AWL,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [188.121.53.1] (HELO n1plout04-01.prod.ams1.secureserver.net) (188.121.53.1) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 Jun 2010 11:12:32 +0000 Received: (qmail 937 invoked from network); 21 Jun 2010 11:12:07 -0000 Received: from unknown (109.253.105.141) by n1plout04-01.prod.ams1.secureserver.net (188.121.53.1) with ESMTP; 21 Jun 2010 11:11:50 -0000 From: "Itamar Syn-Hershko" To: References: <1277110066916-910835.post@n3.nabble.com> Subject: RE: can lucene search more than one word Date: Mon, 21 Jun 2010 14:11:42 +0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1277110066916-910835.post@n3.nabble.com> Thread-Index: AcsRJwqiJ7LMcK68RcOrzhMWwG0EIwACUvcg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 This happens because those two words are "stop words", and are being filtered by StandardAnalyzer, which is what you probably used. You may want to use java-user@lucene.apache.org for this type of questions. Itamar. > -----Original Message----- > From: danielkimo [mailto:danielkimo@gmail.com] > Sent: Monday, June 21, 2010 11:48 AM > To: java-dev@lucene.apache.org > Subject: can lucene search more than one word > > > Dear all, > > I used lucene to index BNC Corpus(British News Corpus). > However, when I search "have on", the result is always zero. > The result is 82 from BNC website. I think the problem is > lucene cannot search two words at the same time. Does anyone > have the same experience? Thanks > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/can-lucene-search-more-than -one-word-tp910835p910835.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org