Package org.apache.lucene.search
Class MultiTermQuery.RewriteMethod
java.lang.Object
org.apache.lucene.search.MultiTermQuery.RewriteMethod
- Direct Known Subclasses:
DocValuesRewriteMethod
,ScoringRewrite
,TopTermsRewrite
- Enclosing class:
- MultiTermQuery
Abstract class that defines how the query is rewritten.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TermsEnum
getTermsEnum
(MultiTermQuery query, Terms terms, AttributeSource atts) Returns theMultiTermQuery
sTermsEnum
abstract Query
rewrite
(IndexReader reader, MultiTermQuery query)
-
Constructor Details
-
RewriteMethod
public RewriteMethod()
-
-
Method Details
-
rewrite
- Throws:
IOException
-
getTermsEnum
protected TermsEnum getTermsEnum(MultiTermQuery query, Terms terms, AttributeSource atts) throws IOException Returns theMultiTermQuery
sTermsEnum
- Throws:
IOException
- See Also:
-