The limit also applies for filters. If you have a list of terms ORed together, 
the fastest way is not to use a BooleanQuery at all, but instead a TermsFilter 
(which has no limits).

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -----Original Message-----
> From: Carsten Schnober [mailto:schno...@ids-mannheim.de]
> Sent: Monday, April 15, 2013 9:53 AM
> To: java-user@lucene.apache.org
> Subject: Re: Statically store sub-collections for search (faceted search?)
> 
> Am 12.04.2013 20:08, schrieb SUJIT PAL:
> > Hi Carsten,
> >
> > Why not use your idea of the BooleanQuery but wrap it in a Filter instead?
> Since you are not doing any scoring (only filtering), the max boolean clauses
> limit should not apply to a filter.
> 
> Hi Sujit,
> thanks for your suggestion! I wasn't aware that the max clause limit does not
> match for a BooleanQuery wrapped in a filter. I suppose the ideal way would
> be to use a BooleanFilter but not a QueryWrapperFilter, right?
> 
> However, I am also not sure how to apply a filter in my use case because I
> perform a SpanQuery. Although SpanQuery#getSpans() does take a Bits
> object as an argument (acceptDocs), I haven't been able to figure out how to
> generate this Bits object correctly from a Filter object.
> 
> Best,
> Carsten
> 
> --
> Institut für Deutsche Sprache | http://www.ids-mannheim.de
> Projekt KorAP                 | http://korap.ids-mannheim.de
> Tel. +49-(0)621-43740789      | schno...@ids-mannheim.de
> Korpusanalyseplattform der nächsten Generation Next Generation Corpus
> Analysis Platform
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to