Re: BooleanQuery TooManyClauses in wildcard search

2007-12-03 Thread Erick Erickson
First time I tried this I made it WAY more complex than it is WARNING: this is from an older code base so you may have to tweak it. Might be 1.9 code public class WildcardTermFilter extends Filter { private static final long serialVersionUID = 1L; protected BitSet

Re: BooleanQuery TooManyClauses in wildcard search

2007-12-02 Thread Ruchi Thakur
Erick can you please point me to some example of creating a filtered wildcard query. I have not used filters anytime before. Tried reading but still am really not able to understand how filters actually work and will help me getting rid of MaxClause Exception. Regards, Ruchika Erick Eri

Re: BooleanQuery TooManyClauses in wildcard search

2007-12-01 Thread Erick Erickson
See below: On Dec 1, 2007 1:16 AM, Ruchi Thakur <[EMAIL PROTECTED]> wrote: > > Erick/John, thank you so much for the reply. I have gone through the > mailing list u have redirected me to. I know i need to read more, but some > quick questions. Please bear with me if they appear to be too simple

Re: BooleanQuery TooManyClauses in wildcard search

2007-11-30 Thread Ruchi Thakur
Erick/John, thank you so much for the reply. I have gone through the mailing list u have redirected me to. I know i need to read more, but some quick questions. Please bear with me if they appear to be too simple. Below is the code snippet of my current search. Also i need to get score inf

Re: BooleanQuery TooManyClauses in wildcard search

2007-11-30 Thread Erick Erickson
John's answer is spot-on. There's a wealth of information in the user group archives that you should be able to search on discussing ways of providing the functionality. One thread titled "I just don't get wildcards at all" is one where the folks who know generously helped me out. Once you find ou

Re: BooleanQuery TooManyClauses in wildcard search

2007-11-30 Thread John Byrne
Hi, Your problem is that when you do a wildacrd search, Lucene expands the wildacrd term into all possible terms. So, searching for "stat*" produces a list of terms like "state", "states", "stating" etc. (It only uses terms that actually occur in your index, however). These terms are all adde

BooleanQuery TooManyClauses in wildcard search

2007-11-30 Thread Ruchi Thakur
Hi there. I am a new Lucene user and I have been searching the group archives but couldn't solve the problem. I have just joined a project that uses Lucene. We use the StandardAnalyzer for indexing our documents and our query is as follows when we issue a search string oft* for exa