RE: Lucene 2.9.0 / BooleanQuery problem

2009-10-29 Thread Uwe Schindler
mail.com] > Sent: Thursday, October 29, 2009 5:08 AM > To: java-user@lucene.apache.org > Subject: Re: Lucene 2.9.0 / BooleanQuery problem > > OMG, it's SO OBVIOUS! For the normal search (sector:IT AND > group:group) > the problem was indeed that IT is "it", s

Re: Lucene 2.9.0 / BooleanQuery problem

2009-10-28 Thread Michel Nadeau
OMG, it's SO OBVIOUS! For the normal search (sector:IT AND group:group) the problem was indeed that IT is "it", stopword. Thanks, I was so not seeing it! But what about the BooleanQuery? It should work fine too now... // // Test BooleanQuery // BooleanQuery que

Re: Lucene 2.9.0 / BooleanQuery problem

2009-10-28 Thread Jake Mannix
Hi Michel, I don't have time to look in too much detail right now, but I'll bet ya $5 it's because your query is for "sector:IT" - 'IT' lowercases to 'it' which is in the default stopword list, and if you're not careful about how you query with this, you'll end up with TermQuery instances which

Lucene 2.9.0 / BooleanQuery problem

2009-10-28 Thread Michel Nadeau
Hi ! I spent all night trying to get a simple BooleanQuery working and I really can't figure out what is my problem. See this very simple program : public class test { @SuppressWarnings("deprecation") public static void main(String[] args) throws ParseException, CorruptIndexException, Lo