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.IntervalsSource
ordered
(org.apache.lucene.queries.intervals.IntervalsSource... subSources) Create an orderedIntervalsSource
static org.apache.lucene.queries.intervals.IntervalsSource
unordered
(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 orderedIntervalsSource
Returns intervals in which the subsources all appear in the given order
- Parameters:
subSources
- an ordered set ofIntervalsSource
objects
-
unordered
public static org.apache.lucene.queries.intervals.IntervalsSource unordered(org.apache.lucene.queries.intervals.IntervalsSource... subSources) Create an orderedIntervalsSource
Returns intervals in which the subsources all appear in the given order
- Parameters:
subSources
- an ordered set ofIntervalsSource
objects
-