Hi, Words have and on are probably in your list of stopwords and getting removed from the query/documents.
Please use u...@lucene list for questions about Lucene usage. Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: danielkimo <danielk...@gmail.com> > To: java-...@lucene.apache.org > Sent: Mon, June 21, 2010 4:47:46 AM > 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: > href="http://lucene.472066.n3.nabble.com/can-lucene-search-more-than-one-word-tp910835p910835.html" > > target=_blank > >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: > href="mailto:dev-unsubscr...@lucene.apache.org">dev-unsubscr...@lucene.apache.org For > additional commands, e-mail: > href="mailto:dev-h...@lucene.apache.org">dev-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org