lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: lucene-4.0: QueryWrapperFilter & docBase
Date Mon, 08 Oct 2012 17:37:05 GMT
> >> I would recommend to *not* use QueryWrapperFilter and instead wrap with
> ConstantScoreQuery and add it to the query as a Boolean MUST clause. In that
> case it should work fine. There is no performance increase by using
> QueryWrapperFilter, so no reason to use it.
> >
> > It's important for me that the score does not change from what it was
> > before, and i'm unable to construct a booleanquery w/ CSQ that
> > basically ignores the filter score.

A CSQ with boost=0.0f does returns a score of 0. If you add it to a BooleanQuery(disableCoord=true),
it should not change score (because scores are summed up). The Top-Level BooleanQuery would
have disabled coord, consisting of your main query and the filter query.

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

View raw message