## Uses of Class
org.apache.lucene.search.MultiTermQuery.RewriteMethod

- Packages that use MultiTermQuery.RewriteMethod
  Package | Description
  --- | ---
  org.apache.lucene.queryParser | A simple query parser implemented with JavaCC.
  org.apache.lucene.queryParser.standard | Contains the implementation of the Lucene query parser using the flexible query parser frameworks
  org.apache.lucene.queryParser.standard.config | Standard Lucene Query Configuration
  org.apache.lucene.search | Code to search indices.

- - ### Uses of MultiTermQuery.RewriteMethod in org.apache.lucene.queryParser

    Methods in org.apache.lucene.queryParser that return MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `MultiTermQuery.RewriteMethod` | QueryParser.`getMultiTermRewriteMethod()`

    Methods in org.apache.lucene.queryParser with parameters of type MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `void` | QueryParser.`setMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)` By default QueryParser uses `MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT` when creating a PrefixQuery, WildcardQuery or RangeQuery.

  - ### Uses of MultiTermQuery.RewriteMethod in org.apache.lucene.queryParser.standard

    Methods in org.apache.lucene.queryParser.standard that return MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `MultiTermQuery.RewriteMethod` | QueryParserWrapper.`getMultiTermRewriteMethod()` Deprecated.
    `MultiTermQuery.RewriteMethod` | StandardQueryParser.`getMultiTermRewriteMethod()`

    Methods in org.apache.lucene.queryParser.standard with parameters of type MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `void` | QueryParserWrapper.`setMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)` Deprecated.
    `void` | StandardQueryParser.`setMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)` By default, it uses `MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT` when creating a prefix, wildcard and range queries.

  - ### Uses of MultiTermQuery.RewriteMethod in org.apache.lucene.queryParser.standard.config

    Methods in org.apache.lucene.queryParser.standard.config that return MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `MultiTermQuery.RewriteMethod` | MultiTermRewriteMethodAttribute.`getMultiTermRewriteMethod()`
    `MultiTermQuery.RewriteMethod` | MultiTermRewriteMethodAttributeImpl.`getMultiTermRewriteMethod()`

    Methods in org.apache.lucene.queryParser.standard.config with parameters of type MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `void` | MultiTermRewriteMethodAttribute.`setMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)`
    `void` | MultiTermRewriteMethodAttributeImpl.`setMultiTermRewriteMethod(MultiTermQuery.RewriteMethod method)`

  - ### Uses of MultiTermQuery.RewriteMethod in org.apache.lucene.search

    Subclasses of MultiTermQuery.RewriteMethod in org.apache.lucene.search
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `MultiTermQuery.ConstantScoreAutoRewrite` A rewrite method that tries to pick the best constant-score rewrite method based on term and document counts from the query.

    Fields in org.apache.lucene.search declared as MultiTermQuery.RewriteMethod
    Modifier and Type | Field and Description
    --- | ---

    `static MultiTermQuery.RewriteMethod`

    MultiTermQuery.`CONSTANT_SCORE_AUTO_REWRITE_DEFAULT`
    Read-only default instance of `MultiTermQuery.ConstantScoreAutoRewrite`, with `MultiTermQuery.ConstantScoreAutoRewrite.setTermCountCutoff(int)` set to `MultiTermQuery.ConstantScoreAutoRewrite.DEFAULT_TERM_COUNT_CUTOFF` and `MultiTermQuery.ConstantScoreAutoRewrite.setDocCountPercent(double)` set to `MultiTermQuery.ConstantScoreAutoRewrite.DEFAULT_DOC_COUNT_PERCENT`.

    `static MultiTermQuery.RewriteMethod` | MultiTermQuery.`CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE` Like `MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE` except scores are not computed.
    `static MultiTermQuery.RewriteMethod` | MultiTermQuery.`CONSTANT_SCORE_FILTER_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 MultiTermQuery.RewriteMethod` | MultiTermQuery.`SCORING_BOOLEAN_QUERY_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 and Description
    --- | ---
    `MultiTermQuery.RewriteMethod` | MultiTermQuery.`getRewriteMethod()`

    Methods in org.apache.lucene.search with parameters of type MultiTermQuery.RewriteMethod
    Modifier and Type | Method and Description
    --- | ---
    `void` | MultiTermQuery.`setRewriteMethod(MultiTermQuery.RewriteMethod method)` Sets the rewrite method to be used when executing the query.
    `void` | FuzzyQuery.`setRewriteMethod(MultiTermQuery.RewriteMethod method)`
    `void` | ConstantScoreRangeQuery.`setRewriteMethod(MultiTermQuery.RewriteMethod method)` Deprecated. Changes of mode are not supported by this class (fixed to constant score rewrite mode)

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.