My first guess would be that you didn't use the same Analyzer for indexing that particular text and processing your query. The one used for indexing filtered out stop words, and the one used for querying does not. Or maybe they have 2 different sets of stop words, one with 'and' and one without.
Or maybe it's a bug :) A self-sufficient junit test case would be helpful. Otis --- Lukas Zapletal <[EMAIL PROTECTED]> wrote: > Hello partisans! > > My friend (Michael) and me have found a bug (probably). Try this: > > Index some text with english (or any) stop-words. Test it. Then. > Try to find a PHRASE (with double quotes) from the text WITH a > stop-word, for example: > > Text is: 'I can not trust person called Gates and selling Windows.' > > Query is: "gates and selling" > (with quotes coz we`re searching for whole phrase!) > > In this phrase word 'and' occurs which is a stop-word. > > Notice *NOTHING* is found. Now try this: > > "gates selling" > > Bingo, document is found. I think there is a bug. When stop-word is > removed from query, double spaces are there. Because the text is > indexed: 'trust person called gates selling windows' Lucene finds > nothing. But when you remove the spaces it finds it. > > Is this a bug or am I missing something? > > The problem could be these spaces or something else. I did not study > the > sources. Can anybody look at it? I have a big exam tomorrow and I > must > study. I need to fix it because my project is finishing and it uses > great Lucene. > -- > Lukas Zapletal [[EMAIL PROTECTED]] > http://www.tanecni-olomouc.cz/lzap > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
