# 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
  `final class`
  `DocValuesRewriteMethod`
  Rewrites MultiTermQueries into a filter, using DocValues for term enumeration.
  `static final class`
  `MultiTermQuery.TopTermsBlendedFreqScoringRewrite`
  A rewrite method that first translates each term into `BooleanClause.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`
  `MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite`
  A rewrite method that first translates each term into `BooleanClause.Occur.SHOULD` clause in a BooleanQuery, but the scores are only computed as the boost.
  `static final class`
  `MultiTermQuery.TopTermsScoringBooleanQueryRewrite`
  A rewrite method that first translates each term into `BooleanClause.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 final MultiTermQuery.RewriteMethod`
  MultiTermQuery.`CONSTANT_SCORE_BLENDED_REWRITE`
  A rewrite method where documents are assigned a constant score equal to the query's boost.
  `static final MultiTermQuery.RewriteMethod`
  MultiTermQuery.`CONSTANT_SCORE_BOOLEAN_REWRITE`
  Like `MultiTermQuery.SCORING_BOOLEAN_REWRITE` except scores are not computed.
  `static final MultiTermQuery.RewriteMethod`
  ScoringRewrite.`CONSTANT_SCORE_BOOLEAN_REWRITE`
  Like `ScoringRewrite.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.
  `static final MultiTermQuery.RewriteMethod`
  MultiTermQuery.`DOC_VALUES_REWRITE`
  A rewrite method that uses `DocValuesType.SORTED` / `DocValuesType.SORTED_SET` doc values to find matching docs through a post-filtering type approach.
  `protected final MultiTermQuery.RewriteMethod`
  MultiTermQuery.`rewriteMethod`
  `static final MultiTermQuery.RewriteMethod`
  MultiTermQuery.`SCORING_BOOLEAN_REWRITE`
  A rewrite method that first translates each term into `BooleanClause.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 expansions
  `MultiTermQuery.RewriteMethod`
  MultiTermQuery.`getRewriteMethod()`
  Methods in org.apache.lucene.search with parameters of type MultiTermQuery.RewriteMethod
  Modifier and Type
  Method
  Description
  `static IndexOrDocValuesQuery`
  TermInSetQuery.`newIndexOrDocValuesQuery(MultiTermQuery.RewriteMethod indexRewriteMethod, String field, Collection<BytesRef> terms)`
  Creates a new `IndexOrDocValuesQuery` combining two `TermInSetQuery` with the same terms allowing to pack them only once that's faster.
  `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.
  Constructors in org.apache.lucene.search with parameters of type MultiTermQuery.RewriteMethod
  Modifier
  Constructor
  Description
  ``
  `AutomatonQuery(Term term, Automaton automaton, boolean isBinary, MultiTermQuery.RewriteMethod rewriteMethod)`
  Create a new AutomatonQuery from an `Automaton`.
  ``
  `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 most `maxEdits` to `term`.
  ``
  `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 with `prefix` using a defined RewriteMethod
  ``
  `RegexpQuery(Term term, int syntaxFlags, int matchFlags, AutomatonProvider provider, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod)`
  Constructs a query for terms matching `term`.
  ``
  `RegexpQuery(Term term, int syntaxFlags, int matchFlags, AutomatonProvider provider, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod, boolean doDeterminization)`
  Constructs a query for terms matching `term`.
  ``
  `TermInSetQuery(MultiTermQuery.RewriteMethod rewriteMethod, String field, Collection<BytesRef> terms)`
  Creates a new `TermInSetQuery` from the given collection of terms.
  ``
  `TermRangeQuery(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper, MultiTermQuery.RewriteMethod rewriteMethod)`
  Constructs a query selecting all terms greater/equal than `lowerTerm` but less/equal than `upperTerm`.
  ``
  `WildcardQuery(Term term, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod)`
  Constructs a query for terms matching `term`.