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 Summary

      Constructors 
      Constructor Description
      DocValuesSliceQuery​(java.lang.String field, int id, int max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.search.Weight createWeight​(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores, float boost)  
      • Methods inherited from class org.apache.lucene.search.Query

        classHash, rewrite, sameClassAs, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DocValuesSliceQuery

        public DocValuesSliceQuery​(java.lang.String field,
                                   int id,
                                   int max)
    • Method Detail

      • createWeight

        public org.apache.lucene.search.Weight createWeight​(org.apache.lucene.search.IndexSearcher searcher,
                                                            boolean needsScores,
                                                            float boost)
                                                     throws java.io.IOException
        Overrides:
        createWeight in class org.apache.lucene.search.Query
        Throws:
        java.io.IOException