Class SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite

Enclosing class:
SpanMultiTermQueryWrapper<Q extends MultiTermQuery>

public static final class SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite extends SpanMultiTermQueryWrapper.SpanRewriteMethod
A rewrite method that first translates each term into a SpanTermQuery in a BooleanClause.Occur.SHOULD clause in a BooleanQuery, and keeps the scores as computed by the query.

This rewrite method only uses the top scoring terms so it will not overflow the boolean max clause count.

See Also: