Uses of Class
org.apache.lucene.search.MultiTermQuery.RewriteMethod
-
Packages that use MultiTermQuery.RewriteMethod Package Description org.apache.lucene.search Code to search indices. -
-
Uses of MultiTermQuery.RewriteMethod in org.apache.lucene.search
Subclasses of MultiTermQuery.RewriteMethod in org.apache.lucene.search Modifier and Type Class Description class
DocValuesRewriteMethod
Rewrites MultiTermQueries into a filter, using DocValues for term enumeration.static class
MultiTermQuery.TopTermsBlendedFreqScoringRewrite
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 class
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite
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 class
MultiTermQuery.TopTermsScoringBooleanQueryRewrite
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
ScoringRewrite<B>
Base rewrite method that translates each term into a query, and keeps the scores as computed by the query.class
TopTermsRewrite<B>
Base rewrite method for collecting only the top terms via a priority queue.Fields in org.apache.lucene.search declared as MultiTermQuery.RewriteMethod Modifier and Type Field Description static MultiTermQuery.RewriteMethod
MultiTermQuery. CONSTANT_SCORE_BLENDED_REWRITE
A rewrite method where documents are assigned a constant score equal to the query's boost.static MultiTermQuery.RewriteMethod
MultiTermQuery. CONSTANT_SCORE_BOOLEAN_REWRITE
LikeMultiTermQuery.SCORING_BOOLEAN_REWRITE
except scores are not computed.static MultiTermQuery.RewriteMethod
ScoringRewrite. CONSTANT_SCORE_BOOLEAN_REWRITE
LikeScoringRewrite.SCORING_BOOLEAN_REWRITE
except scores are not computed.static 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.static MultiTermQuery.RewriteMethod
MultiTermQuery. DOC_VALUES_REWRITE
A rewrite method that usesDocValuesType.SORTED
/DocValuesType.SORTED_SET
doc values to find matching docs through a post-filtering type approach.protected MultiTermQuery.RewriteMethod
MultiTermQuery. rewriteMethod
static 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.Methods in org.apache.lucene.search that return MultiTermQuery.RewriteMethod Modifier and Type Method Description static MultiTermQuery.RewriteMethod
FuzzyQuery. defaultRewriteMethod(int maxExpansions)
Creates a default top-terms blended frequency scoring rewrite with the given max expansionsMultiTermQuery.RewriteMethod
MultiTermQuery. getRewriteMethod()
Methods in org.apache.lucene.search with parameters of type MultiTermQuery.RewriteMethod Modifier and Type Method Description static 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 insteadConstructors in org.apache.lucene.search with parameters of type MultiTermQuery.RewriteMethod Constructor Description AutomatonQuery(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
.TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, String field, Collection<BytesRef> terms)
Creates a newTermInSetQuery
from the given collection of terms.TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, String field, BytesRef... terms)
Creates a newTermInSetQuery
from the given array of terms.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
.
-