Package org.apache.lucene.queries.intervals

Intervals queries

This package contains experimental classes to search over intervals within fields

IntervalsSource

The IntervalsSource class can be used to construct proximity relationships between terms and intervals. They can be built using static methods in the Intervals class.

Basic intervals

Filters

The Intervals class contains more advanced filters, please refer to the documentation of that class.

IntervalQuery

An IntervalQuery takes a field name and an IntervalsSource, and matches all documents that contain intervals defined by the source in that field.

Interval query support in query parsers

Lucene's StandardQueryParser (from the queryparser module) supports interval function expressions.