Re: [Lucene] custom Query, and Stop Words

2011-02-10 Thread sol myr
Thanks so much - I used STOP_WORDS_SET and it works fine (luckily, punctuation and case are not a problem in our case). Thanks ! --- On Wed, 2/9/11, Ian Lea wrote: From: Ian Lea Subject: Re: [Lucene] custom Query, and Stop Words To: java-user@lucene.apache.org Date: Wednesday, February 9

Re: [Lucene] custom Query, and Stop Words

2011-02-09 Thread Ian Lea
Have you considered using stemming instead? Sounds like that might make most of your problems go away and achieve the same result. I'm not aware of a utility method to remove stop words from a string but there are ways of passing data through analyzers/tokenizers and grabbing the output. Standard

[Lucene] custom Query, and Stop Words

2011-02-09 Thread sol myr
Hi, I'm building my own BooleanQuery (rather than using Query Parser). That's because I need different defaults from my users: If a user types:  java program I need to run the query: +java* +program* (namely AND search, with Prefix so as to hit "programS", "programMER"). So naively I split the