Package | Description |
---|---|
org.apache.lucene.search.intervals |
Intervals queries
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
BlockIntervalsSource |
(package private) class |
ConjunctionIntervalsSource |
(package private) class |
ContainedByIntervalsSource |
(package private) class |
ContainingIntervalsSource |
(package private) class |
DifferenceIntervalsSource |
(package private) class |
DisjunctionIntervalsSource |
(package private) class |
ExtendedIntervalsSource |
class |
FilteredIntervalsSource
An IntervalsSource that filters the intervals from another IntervalsSource
|
private static class |
FilteredIntervalsSource.MaxGaps |
private static class |
FilteredIntervalsSource.MaxWidth |
(package private) class |
FixedFieldIntervalsSource |
(package private) class |
MinimumShouldMatchIntervalsSource |
(package private) class |
MultiTermIntervalsSource |
(package private) class |
NonOverlappingIntervalsSource |
(package private) class |
NoRewriteDisjunctionIntervalsSource |
(package private) class |
NotContainedByIntervalsSource |
(package private) class |
NotContainingIntervalsSource |
(package private) class |
OffsetIntervalsSource
Tracks a reference intervals source, and produces a pseudo-interval that appears
either one position before or one position after each interval from the reference
|
(package private) class |
OrderedIntervalsSource |
(package private) class |
OverlappingIntervalsSource |
(package private) class |
PayloadFilteredTermIntervalsSource |
(package private) class |
TermIntervalsSource |
(package private) class |
UnorderedIntervalsSource |
Modifier and Type | Field and Description |
---|---|
private IntervalsSource |
ContainedByIntervalsSource.big |
private IntervalsSource |
ContainingIntervalsSource.big |
protected IntervalsSource |
FilteredIntervalsSource.in |
private IntervalsSource |
OffsetIntervalsSource.in |
private IntervalsSource |
IntervalQuery.intervalsSource |
(package private) IntervalsSource |
DifferenceIntervalsSource.minuend |
private IntervalsSource |
OverlappingIntervalsSource.reference |
private IntervalsSource |
ContainedByIntervalsSource.small |
private IntervalsSource |
ContainingIntervalsSource.small |
private IntervalsSource |
OverlappingIntervalsSource.source |
(package private) IntervalsSource |
ExtendedIntervalsSource.source |
private IntervalsSource |
FixedFieldIntervalsSource.source |
private IntervalsSource[] |
MinimumShouldMatchIntervalsSource.sources |
(package private) IntervalsSource |
DifferenceIntervalsSource.subtrahend |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Collection<IntervalsSource> |
DisjunctionIntervalsSource.subSources |
protected java.util.List<IntervalsSource> |
ConjunctionIntervalsSource.subSources |
Modifier and Type | Method and Description |
---|---|
static IntervalsSource |
Intervals.after(IntervalsSource source,
IntervalsSource reference)
Returns intervals from the source that appear after intervals from the reference
|
static IntervalsSource |
Intervals.atLeast(int minShouldMatch,
IntervalsSource... sources)
Return intervals that span combinations of intervals from
minShouldMatch of the sources |
static IntervalsSource |
Intervals.before(IntervalsSource source,
IntervalsSource reference)
Returns intervals from the source that appear before intervals from the reference
|
(package private) static IntervalsSource |
ContainedByIntervalsSource.build(IntervalsSource small,
IntervalsSource big) |
(package private) static IntervalsSource |
NotContainingIntervalsSource.build(IntervalsSource minuend,
IntervalsSource subtrahend) |
(package private) static IntervalsSource |
NotContainedByIntervalsSource.build(IntervalsSource minuend,
IntervalsSource subtrahend) |
(package private) static IntervalsSource |
ContainingIntervalsSource.build(IntervalsSource big,
IntervalsSource small) |
(package private) static IntervalsSource |
OrderedIntervalsSource.build(java.util.List<IntervalsSource> sources) |
(package private) static IntervalsSource |
BlockIntervalsSource.build(java.util.List<IntervalsSource> subSources) |
(package private) static IntervalsSource |
UnorderedIntervalsSource.build(java.util.List<IntervalsSource> sources,
boolean allowOverlaps) |
static IntervalsSource |
Intervals.containedBy(IntervalsSource small,
IntervalsSource big)
Create a contained-by
IntervalsSource
Returns intervals from the small query that appear within intervals of the big query |
static IntervalsSource |
Intervals.containing(IntervalsSource big,
IntervalsSource small)
Create a containing
IntervalsSource
Returns intervals from the big source that contain one or more intervals from
the small source |
static IntervalsSource |
Intervals.extend(IntervalsSource source,
int before,
int after)
Create an
IntervalsSource that wraps another source, extending its
intervals by a number of positions before and after. |
static IntervalsSource |
Intervals.fixField(java.lang.String field,
IntervalsSource source)
Create an
IntervalsSource that always returns intervals from a specific field
This is useful for comparing intervals across multiple fields, for example fields that
have been analyzed differently, allowing you to search for stemmed terms near unstemmed
terms, etc. |
static IntervalsSource |
FilteredIntervalsSource.maxGaps(IntervalsSource in,
int maxGaps) |
static IntervalsSource |
Intervals.maxgaps(int gaps,
IntervalsSource subSource)
Create an
IntervalsSource that filters a sub-source by its gaps |
static IntervalsSource |
FilteredIntervalsSource.maxWidth(IntervalsSource in,
int maxWidth) |
static IntervalsSource |
Intervals.maxwidth(int width,
IntervalsSource subSource)
Create an
IntervalsSource that filters a sub-source by the width of its intervals |
static IntervalsSource |
Intervals.nonOverlapping(IntervalsSource minuend,
IntervalsSource subtrahend)
Create a non-overlapping IntervalsSource
Returns intervals of the minuend that do not overlap with intervals from the subtrahend
|
static IntervalsSource |
Intervals.notContainedBy(IntervalsSource small,
IntervalsSource big)
Create a not-contained-by
IntervalsSource
Returns intervals from the small IntervalsSource that do not appear within
intervals from the big IntervalsSource . |
static IntervalsSource |
Intervals.notContaining(IntervalsSource minuend,
IntervalsSource subtrahend)
Create a not-containing
IntervalsSource
Returns intervals from the minuend that do not contain intervals of the subtrahend |
static IntervalsSource |
Intervals.notWithin(IntervalsSource minuend,
int positions,
IntervalsSource subtrahend)
Create a not-within
IntervalsSource
Returns intervals of the minuend that do not appear within a set number of positions of
intervals from the subtrahend query |
static IntervalsSource |
Intervals.or(boolean rewrite,
IntervalsSource... subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources |
static IntervalsSource |
Intervals.or(boolean rewrite,
java.util.List<IntervalsSource> subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources |
static IntervalsSource |
Intervals.or(IntervalsSource... subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources
Automatically rewrites if wrapped by an interval source that is sensitive to
internal gaps |
static IntervalsSource |
Intervals.or(java.util.List<IntervalsSource> subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources |
static IntervalsSource |
Intervals.ordered(IntervalsSource... subSources)
Create an ordered
IntervalsSource
Returns intervals in which the subsources all appear in the given order |
static IntervalsSource |
Intervals.overlapping(IntervalsSource source,
IntervalsSource reference)
Returns intervals from a source that overlap with intervals from another source
|
static IntervalsSource |
Intervals.phrase(IntervalsSource... subSources)
Return an
IntervalsSource exposing intervals for a phrase consisting of a list of IntervalsSources |
static IntervalsSource |
Intervals.phrase(java.lang.String... terms)
Return an
IntervalsSource exposing intervals for a phrase consisting of a list of terms |
static IntervalsSource |
Intervals.prefix(java.lang.String prefix)
Return an
IntervalsSource over the disjunction of all terms that begin with a prefix |
static IntervalsSource |
Intervals.term(BytesRef term)
Return an
IntervalsSource exposing intervals for a term |
static IntervalsSource |
Intervals.term(BytesRef term,
java.util.function.Predicate<BytesRef> payloadFilter)
Return an
IntervalsSource exposing intervals for a term, filtered by the value
of the term's payload at each position |
static IntervalsSource |
Intervals.term(java.lang.String term)
Return an
IntervalsSource exposing intervals for a term |
static IntervalsSource |
Intervals.term(java.lang.String term,
java.util.function.Predicate<BytesRef> payloadFilter)
Return an
IntervalsSource exposing intervals for a term, filtered by the value
of the term's payload at each position |
static IntervalsSource |
Intervals.unordered(boolean allowOverlaps,
IntervalsSource... subSources)
Create an unordered
IntervalsSource
Returns intervals in which all the subsources appear. |
static IntervalsSource |
Intervals.unordered(IntervalsSource... subSources)
Create an unordered
IntervalsSource
Returns intervals in which all the subsources appear. |
static IntervalsSource |
Intervals.wildcard(java.lang.String wildcard)
Return an
IntervalsSource over the disjunction of all terms that match a wildcard glob |
static IntervalsSource |
Intervals.within(IntervalsSource source,
int positions,
IntervalsSource reference)
Returns intervals of the source that appear within a set number of positions of intervals from
the reference
|
Modifier and Type | Method and Description |
---|---|
private static java.util.List<IntervalsSource> |
OrderedIntervalsSource.flatten(java.util.List<IntervalsSource> sources) |
private static java.util.List<IntervalsSource> |
BlockIntervalsSource.flatten(java.util.List<IntervalsSource> sources) |
private static java.util.List<IntervalsSource> |
UnorderedIntervalsSource.flatten(java.util.List<IntervalsSource> sources,
boolean allowOverlaps) |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(IntervalsSource source,
java.util.function.Function<IntervalsSource,IntervalsSource> function) |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(java.util.List<IntervalsSource> sources,
java.util.function.Function<java.util.List<IntervalsSource>,IntervalsSource> function) |
java.util.Collection<IntervalsSource> |
MinimumShouldMatchIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
OverlappingIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
FilteredIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
FilteredIntervalsSource.MaxWidth.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
NoRewriteDisjunctionIntervalsSource.pullUpDisjunctions() |
abstract java.util.Collection<IntervalsSource> |
IntervalsSource.pullUpDisjunctions()
Expert: return the set of disjunctions that make up this IntervalsSource
Most implementations can return
Collections.singleton(this) |
java.util.Collection<IntervalsSource> |
ExtendedIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
PayloadFilteredTermIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
UnorderedIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
ContainedByIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
NonOverlappingIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
DisjunctionIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
OffsetIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
MultiTermIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
NotContainingIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
FixedFieldIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
OrderedIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
TermIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
NotContainedByIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
ContainingIntervalsSource.pullUpDisjunctions() |
java.util.Collection<IntervalsSource> |
BlockIntervalsSource.pullUpDisjunctions() |
private static java.util.Collection<IntervalsSource> |
DisjunctionIntervalsSource.simplify(java.util.Collection<IntervalsSource> sources) |
private static java.util.List<IntervalsSource> |
Disjunctions.splitDisjunctions(IntervalsSource source) |
Modifier and Type | Method and Description |
---|---|
static IntervalsSource |
Intervals.after(IntervalsSource source,
IntervalsSource reference)
Returns intervals from the source that appear after intervals from the reference
|
static IntervalsSource |
Intervals.atLeast(int minShouldMatch,
IntervalsSource... sources)
Return intervals that span combinations of intervals from
minShouldMatch of the sources |
static IntervalsSource |
Intervals.before(IntervalsSource source,
IntervalsSource reference)
Returns intervals from the source that appear before intervals from the reference
|
(package private) static IntervalsSource |
ContainedByIntervalsSource.build(IntervalsSource small,
IntervalsSource big) |
(package private) static IntervalsSource |
NotContainingIntervalsSource.build(IntervalsSource minuend,
IntervalsSource subtrahend) |
(package private) static IntervalsSource |
NotContainedByIntervalsSource.build(IntervalsSource minuend,
IntervalsSource subtrahend) |
(package private) static IntervalsSource |
ContainingIntervalsSource.build(IntervalsSource big,
IntervalsSource small) |
static IntervalsSource |
Intervals.containedBy(IntervalsSource small,
IntervalsSource big)
Create a contained-by
IntervalsSource
Returns intervals from the small query that appear within intervals of the big query |
static IntervalsSource |
Intervals.containing(IntervalsSource big,
IntervalsSource small)
Create a containing
IntervalsSource
Returns intervals from the big source that contain one or more intervals from
the small source |
static IntervalsSource |
Intervals.extend(IntervalsSource source,
int before,
int after)
Create an
IntervalsSource that wraps another source, extending its
intervals by a number of positions before and after. |
static IntervalsSource |
Intervals.fixField(java.lang.String field,
IntervalsSource source)
Create an
IntervalsSource that always returns intervals from a specific field
This is useful for comparing intervals across multiple fields, for example fields that
have been analyzed differently, allowing you to search for stemmed terms near unstemmed
terms, etc. |
static IntervalsSource |
FilteredIntervalsSource.maxGaps(IntervalsSource in,
int maxGaps) |
static IntervalsSource |
Intervals.maxgaps(int gaps,
IntervalsSource subSource)
Create an
IntervalsSource that filters a sub-source by its gaps |
static IntervalsSource |
FilteredIntervalsSource.maxWidth(IntervalsSource in,
int maxWidth) |
static IntervalsSource |
Intervals.maxwidth(int width,
IntervalsSource subSource)
Create an
IntervalsSource that filters a sub-source by the width of its intervals |
static IntervalsSource |
Intervals.nonOverlapping(IntervalsSource minuend,
IntervalsSource subtrahend)
Create a non-overlapping IntervalsSource
Returns intervals of the minuend that do not overlap with intervals from the subtrahend
|
static IntervalsSource |
Intervals.notContainedBy(IntervalsSource small,
IntervalsSource big)
Create a not-contained-by
IntervalsSource
Returns intervals from the small IntervalsSource that do not appear within
intervals from the big IntervalsSource . |
static IntervalsSource |
Intervals.notContaining(IntervalsSource minuend,
IntervalsSource subtrahend)
Create a not-containing
IntervalsSource
Returns intervals from the minuend that do not contain intervals of the subtrahend |
static IntervalsSource |
Intervals.notWithin(IntervalsSource minuend,
int positions,
IntervalsSource subtrahend)
Create a not-within
IntervalsSource
Returns intervals of the minuend that do not appear within a set number of positions of
intervals from the subtrahend query |
static IntervalsSource |
Intervals.or(boolean rewrite,
IntervalsSource... subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources |
static IntervalsSource |
Intervals.or(IntervalsSource... subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources
Automatically rewrites if wrapped by an interval source that is sensitive to
internal gaps |
static IntervalsSource |
Intervals.ordered(IntervalsSource... subSources)
Create an ordered
IntervalsSource
Returns intervals in which the subsources all appear in the given order |
static IntervalsSource |
Intervals.overlapping(IntervalsSource source,
IntervalsSource reference)
Returns intervals from a source that overlap with intervals from another source
|
static IntervalsSource |
Intervals.phrase(IntervalsSource... subSources)
Return an
IntervalsSource exposing intervals for a phrase consisting of a list of IntervalsSources |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(IntervalsSource source,
java.util.function.Function<IntervalsSource,IntervalsSource> function) |
private static java.util.List<IntervalsSource> |
Disjunctions.splitDisjunctions(IntervalsSource source) |
static IntervalsSource |
Intervals.unordered(boolean allowOverlaps,
IntervalsSource... subSources)
Create an unordered
IntervalsSource
Returns intervals in which all the subsources appear. |
static IntervalsSource |
Intervals.unordered(IntervalsSource... subSources)
Create an unordered
IntervalsSource
Returns intervals in which all the subsources appear. |
static IntervalsSource |
Intervals.within(IntervalsSource source,
int positions,
IntervalsSource reference)
Returns intervals of the source that appear within a set number of positions of intervals from
the reference
|
Modifier and Type | Method and Description |
---|---|
(package private) static IntervalsSource |
OrderedIntervalsSource.build(java.util.List<IntervalsSource> sources) |
(package private) static IntervalsSource |
BlockIntervalsSource.build(java.util.List<IntervalsSource> subSources) |
(package private) static IntervalsSource |
UnorderedIntervalsSource.build(java.util.List<IntervalsSource> sources,
boolean allowOverlaps) |
private static java.util.List<IntervalsSource> |
OrderedIntervalsSource.flatten(java.util.List<IntervalsSource> sources) |
private static java.util.List<IntervalsSource> |
BlockIntervalsSource.flatten(java.util.List<IntervalsSource> sources) |
private static java.util.List<IntervalsSource> |
UnorderedIntervalsSource.flatten(java.util.List<IntervalsSource> sources,
boolean allowOverlaps) |
static IntervalsSource |
Intervals.or(boolean rewrite,
java.util.List<IntervalsSource> subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources |
static IntervalsSource |
Intervals.or(java.util.List<IntervalsSource> subSources)
Return an
IntervalsSource over the disjunction of a set of sub-sources |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(IntervalsSource source,
java.util.function.Function<IntervalsSource,IntervalsSource> function) |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(IntervalsSource source,
java.util.function.Function<IntervalsSource,IntervalsSource> function) |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(java.util.List<IntervalsSource> sources,
java.util.function.Function<java.util.List<IntervalsSource>,IntervalsSource> function) |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(java.util.List<IntervalsSource> sources,
java.util.function.Function<java.util.List<IntervalsSource>,IntervalsSource> function) |
static java.util.List<IntervalsSource> |
Disjunctions.pullUp(java.util.List<IntervalsSource> sources,
java.util.function.Function<java.util.List<IntervalsSource>,IntervalsSource> function) |
private static java.util.Collection<IntervalsSource> |
DisjunctionIntervalsSource.simplify(java.util.Collection<IntervalsSource> sources) |
Constructor and Description |
---|
BlockIntervalsSource(java.util.List<IntervalsSource> sources) |
ConjunctionIntervalsSource(java.util.List<IntervalsSource> subSources,
boolean isMinimizing) |
DisjunctionIntervalsSource(java.util.Collection<IntervalsSource> subSources) |
NoRewriteDisjunctionIntervalsSource(java.util.Collection<IntervalsSource> subSources) |
OrderedIntervalsSource(java.util.List<IntervalsSource> sources) |
UnorderedIntervalsSource(java.util.List<IntervalsSource> sources,
boolean allowOverlaps) |