Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread Kevin Dutcher
Thanks Hoss... You're absolutely right! Kevin On 2/9/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > > : I need all the documents returned from the search and am manipulating > the > : results with a custom HitCollector, therefore I can't use filters. > > I don't understand this comment. The

Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread Chris Hostetter
: I need all the documents returned from the search and am manipulating the : results with a custom HitCollector, therefore I can't use filters. I don't understand this comment. There are certianly methods in the Searchble interface that allow you to use both a Filter and a HitCollector together

Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread Kevin Dutcher
> > One more thing: in case these queries are generated, you might > consider building the corresponding (nested) BooleanQuery yourself > instead of using the QueryParser. > > Regards, > Paul Elschot I'll give that a try. Thanks Paul.

Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread Paul Elschot
On Thursday 09 February 2006 00:52, Kevin Dutcher wrote: > Hey Everyone, > > I'm running into the "More than 32 required/prohibited clauses in query" > exception when running a query. I thought I understood the problem but the > following two scenarios confuse me. > > 1st - No Error > 33 required

Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread Paul Elschot
On Thursday 09 February 2006 15:25, Kevin Dutcher wrote: > > I don't know a lot about the error your encountering (or not encountering > > as the case may be) but please for hte love of all that is sane use a > > Filter instead of putting all those categories in your Query. > > > > Your search perf

Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread Kevin Dutcher
> I don't know a lot about the error your encountering (or not encountering > as the case may be) but please for hte love of all that is sane use a > Filter instead of putting all those categories in your Query. > > Your search performance and your scores will thank you. I need all the documents

Re: Too many required clauses for a BooleanQuery

2006-02-09 Thread mark harwood
>for hte love of all > that is sane use a > Filter instead of putting all those categories in > your Query. Try this one: package org.apache.lucene.search; import java.io.IOException; import java.util.ArrayList; import java.util.BitSet; import java.util.Iterator; import org.apache.lucene.ind

Re: Too many required clauses for a BooleanQuery

2006-02-08 Thread Chris Hostetter
52:22 -0500 : From: Kevin Dutcher <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: Too many required clauses for a BooleanQuery : : Hey Everyone, : : I'm running into the "More than 32 required/prohibited clauses in query"

Too many required clauses for a BooleanQuery

2006-02-08 Thread Kevin Dutcher
Hey Everyone, I'm running into the "More than 32 required/prohibited clauses in query" exception when running a query. I thought I understood the problem but the following two scenarios confuse me. 1st - No Error 33 required clauses plus additional clauses that are left off b/c they are the same