org.apache.lucene.search

Class DocValuesRangeQuery



  • public final class DocValuesRangeQuery
    extends Query
    A range query that works on top of the doc values APIs. Such queries are usually slow since they do not use an inverted index. However, in the dense case where most documents match this query, it might be as fast or faster than a regular PointRangeQuery.

    NOTE: be very careful using this query: it is typically much slower than using TermsQuery, but in certain specialized cases may be faster.