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

Packages that use MultiTermQuery.RewriteMethod
org.apache.lucene.queryParser: A simple query parser implemented with JavaCC.
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
`MultiTermQuery.RewriteMethod` `QueryParser.getMultiTermRewriteMethod()`

Methods in org.apache.lucene.queryParser with parameters of type MultiTermQuery.RewriteMethod
`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.search

Subclasses of MultiTermQuery.RewriteMethod in org.apache.lucene.search
`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

`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
`MultiTermQuery.RewriteMethod` `MultiTermQuery.getRewriteMethod()`

Methods in org.apache.lucene.search with parameters of type MultiTermQuery.RewriteMethod
`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)
`void` `MultiTermQuery.setRewriteMethod(MultiTermQuery.RewriteMethod method)` Sets the rewrite method to be used when executing the query.

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