Package org.elasticsearch.search.slice
Class TermsSliceQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.slice.SliceQuery
org.elasticsearch.search.slice.TermsSliceQuery
A
SliceQuery
that uses the terms dictionary of a field to do the slicing.
NOTE: The cost of this filter is O(N*M) where N is the number of unique terms in the dictionary
and M is the average number of documents per term.
For each segment this filter enumerates the terms dictionary, computes the hash code for each term and fills
a bit set with the documents of all terms whose hash code matches the predicate.
NOTE: Documents with no value for that field are ignored.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
Methods inherited from class org.elasticsearch.search.slice.SliceQuery
contains, equals, getField, getId, getMax, hashCode, toString
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, visit
-
Field Details
-
SEED
public static final int SEED- See Also:
- Constant Field Values
-
-
Constructor Details
-
TermsSliceQuery
-
-
Method Details
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-