Package org.elasticsearch.search.slice
Class DocValuesSliceQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.elasticsearch.search.slice.SliceQuery
-
- org.elasticsearch.search.slice.DocValuesSliceQuery
-
public final class DocValuesSliceQuery extends SliceQuery
ASliceQuerythat uses the numeric doc values of a field to do the slicing. NOTE: With deterministic field values this query can be used across different readers safely. If updates are accepted on the field you must ensure that the same reader is used for all `slice` queries.
-
-
Constructor Summary
Constructors Constructor Description DocValuesSliceQuery(String field, int id, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)Expert: Constructs an appropriate Weight implementation for this query.-
Methods inherited from class org.elasticsearch.search.slice.SliceQuery
contains, equals, getField, getId, getMax, hashCode, toString
-
-
-
-
Constructor Detail
-
DocValuesSliceQuery
public DocValuesSliceQuery(String field, int id, int max)
-
-
Method Detail
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
Description copied from class:QueryExpert: Constructs an appropriate Weight implementation for this query.Only implemented by primitive queries, which re-write to themselves.
- Overrides:
createWeightin classQueryscoreMode- How the produced scorers will be consumed.boost- The boost that is propagated by the parent queries.- Throws:
IOException
-
-