Package org.apache.lucene.search
Class DocValuesRewriteMethod
- java.lang.Object
-
- org.apache.lucene.search.MultiTermQuery.RewriteMethod
-
- org.apache.lucene.search.DocValuesRewriteMethod
-
public final class DocValuesRewriteMethod extends MultiTermQuery.RewriteMethod
Rewrites MultiTermQueries into a filter, using DocValues for term enumeration.This can be used to perform these queries against an unindexed docvalues field.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description DocValuesRewriteMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
int
hashCode()
Query
rewrite(IndexReader reader, MultiTermQuery query)
-
Methods inherited from class org.apache.lucene.search.MultiTermQuery.RewriteMethod
getTermsEnum
-
-
-
-
Method Detail
-
rewrite
public Query rewrite(IndexReader reader, MultiTermQuery query)
- Specified by:
rewrite
in classMultiTermQuery.RewriteMethod
-
-