RE: Catching BooleanQuery.TooManyClauses

2006-04-17 Thread bb
To: java-user@lucene.apache.org Subject: Re: Catching BooleanQuery.TooManyClauses On Saturday 15 April 2006 13:44, Erick Erickson wrote: With the warning that I'm not the most experienced Lucene user in the world... I *think*, that rather than search for each term, it's more

Re: Catching BooleanQuery.TooManyClauses

2006-04-15 Thread Erick Erickson
With the warning that I'm not the most experienced Lucene user in the world... I *think*, that rather than search for each term, it's more efficient to just use IndexReader.termDocs. i.e. Indexreader ir = whatever; TermDocs termDocs = ir.TermDocs(); WildcardTermEnum wildEnum = whatever; for

Re: Catching BooleanQuery.TooManyClauses

2006-04-15 Thread Paul Elschot
On Saturday 15 April 2006 13:44, Erick Erickson wrote: With the warning that I'm not the most experienced Lucene user in the world... I *think*, that rather than search for each term, it's more efficient to just use IndexReader.termDocs. i.e. Indexreader ir = whatever; TermDocs

Re: Catching BooleanQuery.TooManyClauses

2006-04-15 Thread Erick Erickson
Cool, thanks for the clarification... Erick

Catching BooleanQuery.TooManyClauses

2006-04-14 Thread bb
Hi Lucene Users, I would like to catch BooleanQuery.TooManyClauses exception for certain wildcard searches and display a 'subset' of results. I have used the WildcardTermEnum to give me the first X documents matching the wildcard query. Below is the code I use to implement the solution.