Uses of Class
org.apache.lucene.search.MultiTermQuery.RewriteMethod
-
Uses of MultiTermQuery.RewriteMethod in org.apache.lucene.search
Modifier and TypeClassDescriptionfinal class
Rewrites MultiTermQueries into a filter, using DocValues for term enumeration.static final class
A rewrite method that first translates each term intoBooleanClause.Occur.SHOULD
clause in a BooleanQuery, but adjusts the frequencies used for scoring to be blended across the terms, otherwise the rarest term typically ranks highest (often not useful eg in the set of expanded terms in a FuzzyQuery).static final class
A rewrite method that first translates each term intoBooleanClause.Occur.SHOULD
clause in a BooleanQuery, but the scores are only computed as the boost.static final class
A rewrite method that first translates each term intoBooleanClause.Occur.SHOULD
clause in a BooleanQuery, and keeps the scores as computed by the query.class
Base rewrite method that translates each term into a query, and keeps the scores as computed by the query.class
Base rewrite method for collecting only the top terms via a priority queue.Modifier and TypeFieldDescriptionstatic final MultiTermQuery.RewriteMethod
MultiTermQuery.CONSTANT_SCORE_BOOLEAN_REWRITE
LikeMultiTermQuery.SCORING_BOOLEAN_REWRITE
except scores are not computed.static final MultiTermQuery.RewriteMethod
ScoringRewrite.CONSTANT_SCORE_BOOLEAN_REWRITE
LikeScoringRewrite.SCORING_BOOLEAN_REWRITE
except scores are not computed.static final MultiTermQuery.RewriteMethod
MultiTermQuery.CONSTANT_SCORE_REWRITE
A rewrite method that first creates a private Filter, by visiting each term in sequence and marking all docs for that term.protected MultiTermQuery.RewriteMethod
MultiTermQuery.rewriteMethod
static final MultiTermQuery.RewriteMethod
MultiTermQuery.SCORING_BOOLEAN_REWRITE
A rewrite method that first translates each term intoBooleanClause.Occur.SHOULD
clause in a BooleanQuery, and keeps the scores as computed by the query.Modifier and TypeMethodDescriptionstatic MultiTermQuery.RewriteMethod
FuzzyQuery.defaultRewriteMethod
(int maxExpansions) Creates a default top-terms blended frequency scoring rewrite with the given max expansionsMultiTermQuery.getRewriteMethod()
Modifier and TypeMethodDescriptionstatic TermRangeQuery
TermRangeQuery.newStringRange
(String field, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper, MultiTermQuery.RewriteMethod rewriteMethod) Factory that creates a new TermRangeQuery using Strings for term text.void
MultiTermQuery.setRewriteMethod
(MultiTermQuery.RewriteMethod method) Deprecated.set this using a constructor insteadModifierConstructorDescriptionAutomatonQuery
(Term term, Automaton automaton, int determinizeWorkLimit, boolean isBinary, MultiTermQuery.RewriteMethod rewriteMethod) Create a new AutomatonQuery from anAutomaton
.FuzzyQuery
(Term term, int maxEdits, int prefixLength, int maxExpansions, boolean transpositions, MultiTermQuery.RewriteMethod rewriteMethod) Create a new FuzzyQuery that will match terms with an edit distance of at mostmaxEdits
toterm
.MultiTermQuery
(String field, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query matching terms that cannot be represented with a single Term.PrefixQuery
(Term prefix, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query for terms starting withprefix
using a defined RewriteMethodRegexpQuery
(Term term, int syntax_flags, int match_flags, AutomatonProvider provider, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query for terms matchingterm
.TermRangeQuery
(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query selecting all terms greater/equal thanlowerTerm
but less/equal thanupperTerm
.WildcardQuery
(Term term, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query for terms matchingterm
.