Class MultiTermQuery.ConstantScoreAutoRewrite

java.lang.Object
org.apache.lucene.search.MultiTermQuery.RewriteMethod
org.apache.lucene.search.MultiTermQuery.ConstantScoreAutoRewrite
Enclosing class:
MultiTermQuery

public static class MultiTermQuery.ConstantScoreAutoRewrite extends MultiTermQuery.RewriteMethod
A rewrite method that tries to pick the best constant-score rewrite method based on term and document counts from the query. If both the number of terms and documents is small enough, then MultiTermQuery.CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE is used. Otherwise, MultiTermQuery.CONSTANT_SCORE_FILTER_REWRITE is used.