java.lang.Object
org.elasticsearch.index.query.XIntervals
Copy of
Intervals that exposes versions of Intervals.ordered(org.apache.lucene.queries.intervals.IntervalsSource...) and Intervals.unordered(org.apache.lucene.queries.intervals.IntervalsSource...)
that preserve their inner gaps.
NOTE: Remove this hack when a version of Lucene with https://github.com/apache/lucene/pull/13819 is used (10.1.0).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.queries.intervals.IntervalsSourceordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources) Create an orderedIntervalsSourcestatic org.apache.lucene.queries.intervals.IntervalsSourceunordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources) Create an orderedIntervalsSource
-
Constructor Details
-
XIntervals
public XIntervals()
-
-
Method Details
-
ordered
public static org.apache.lucene.queries.intervals.IntervalsSource ordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources) Create an orderedIntervalsSourceReturns intervals in which the subsources all appear in the given order
- Parameters:
subSources- an ordered set ofIntervalsSourceobjects
-
unordered
public static org.apache.lucene.queries.intervals.IntervalsSource unordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources) Create an orderedIntervalsSourceReturns intervals in which the subsources all appear in the given order
- Parameters:
subSources- an ordered set ofIntervalsSourceobjects
-