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 [email protected] for this type of questions. Itamar. > -----Original Message----- > From: danielkimo [mailto:[email protected]] > Sent: Monday, June 21, 2010 11:48 AM > To: [email protected] > 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
