Class DocValuesSliceQuery


  • public final class DocValuesSliceQuery
    extends SliceQuery
    A SliceQuery that 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 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: Query
        Expert: Constructs an appropriate Weight implementation for this query.

        Only implemented by primitive queries, which re-write to themselves.

        Overrides:
        createWeight in class Query
        scoreMode - How the produced scorers will be consumed.
        boost - The boost that is propagated by the parent queries.
        Throws:
        IOException