lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: How is Number of Boolean Clauses calculated - Minimum Should Match?
Date Wed, 05 Oct 2011 09:32:21 GMT
It will work on the query, whether produced by a query parser or
constructed in code.  I don't see that the number of clauses will
change if you are applying filters.  Filters are not query clauses,
although it can get confusing if you start using stuff like
FilteredQuery or QueryWrapperFilter.


On Wed, Oct 5, 2011 at 8:42 AM, Em <> wrote:
> Hello list,
> in what way does BooleanQuery calculates the number of its clauses? Is
> this number based on the analyzed query or based on the raw query-string?
> Imagine you got a StopFilter or a SynonymFilter applied to a
> BooleanQuery during analyzing - the number of clauses could shrink or
> increase.
> I remind that in connection with the MinimumShouldMatch-param there may
> occur problems if you query fields with an applied StopFilter and some
> fields without.
> I tried to answer a question on mailinglists and noticed that I am
> relatively unsure about how MM is calculated in general and how
> especially in Solr (since I am not sure, I am a little bit confused when
> I made a code review).
> Thank you!
> Regards,
> Em
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message