Uses of Class
org.apache.lucene.queries.intervals.IntervalsSource
-
Packages that use IntervalsSource Package Description org.apache.lucene.queries.intervals Intervals queries -
-
Uses of IntervalsSource in org.apache.lucene.queries.intervals
Subclasses of IntervalsSource in org.apache.lucene.queries.intervals Modifier and Type Class Description class
FilteredIntervalsSource
An IntervalsSource that filters the intervals from another IntervalsSourceFields in org.apache.lucene.queries.intervals declared as IntervalsSource Modifier and Type Field Description protected IntervalsSource
FilteredIntervalsSource. in
Methods in org.apache.lucene.queries.intervals that return IntervalsSource Modifier and Type Method Description static IntervalsSource
Intervals. after(IntervalsSource source, IntervalsSource reference)
Returns intervals from the source that appear after intervals from the referencestatic IntervalsSource
Intervals. atLeast(int minShouldMatch, IntervalsSource... sources)
Return intervals that span combinations of intervals fromminShouldMatch
of the sourcesstatic IntervalsSource
Intervals. before(IntervalsSource source, IntervalsSource reference)
Returns intervals from the source that appear before intervals from the referencestatic IntervalsSource
Intervals. containedBy(IntervalsSource small, IntervalsSource big)
Create a contained-byIntervalsSource
Returns intervals from the small query that appear within intervals of the big querystatic IntervalsSource
Intervals. containing(IntervalsSource big, IntervalsSource small)
Create a containingIntervalsSource
Returns intervals from the big source that contain one or more intervals from the small sourcestatic IntervalsSource
Intervals. extend(IntervalsSource source, int before, int after)
Create anIntervalsSource
that wraps another source, extending its intervals by a number of positions before and after.static IntervalsSource
Intervals. fixField(String field, IntervalsSource source)
Create anIntervalsSource
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
Intervals. maxgaps(int gaps, IntervalsSource subSource)
Create anIntervalsSource
that filters a sub-source by its gapsstatic IntervalsSource
FilteredIntervalsSource. maxGaps(IntervalsSource in, int maxGaps)
static IntervalsSource
Intervals. maxwidth(int width, IntervalsSource subSource)
Create anIntervalsSource
that filters a sub-source by the width of its intervalsstatic IntervalsSource
FilteredIntervalsSource. maxWidth(IntervalsSource in, int maxWidth)
static IntervalsSource
Intervals. multiterm(Automaton automaton, int maxExpansions, String pattern)
Deprecated.static IntervalsSource
Intervals. multiterm(Automaton automaton, String pattern)
Deprecated.static IntervalsSource
Intervals. multiterm(CompiledAutomaton ca, int maxExpansions, String pattern)
Expert: Return anIntervalsSource
over the disjunction of all terms that's accepted by the given automaton WARNING: SettingmaxExpansions
to higher than the default value of 128 can be both slow and memory-intensivestatic IntervalsSource
Intervals. multiterm(CompiledAutomaton ca, String pattern)
Expert: Return anIntervalsSource
over the disjunction of all terms that's accepted by the given automatonstatic 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 subtrahendstatic IntervalsSource
Intervals. notContainedBy(IntervalsSource small, IntervalsSource big)
Create a not-contained-byIntervalsSource
Returns intervals from the smallIntervalsSource
that do not appear within intervals from the bigIntervalsSource
.static IntervalsSource
Intervals. notContaining(IntervalsSource minuend, IntervalsSource subtrahend)
Create a not-containingIntervalsSource
Returns intervals from the minuend that do not contain intervals of the subtrahendstatic IntervalsSource
Intervals. notWithin(IntervalsSource minuend, int positions, IntervalsSource subtrahend)
Create a not-withinIntervalsSource
Returns intervals of the minuend that do not appear within a set number of positions of intervals from the subtrahend querystatic IntervalsSource
Intervals. or(boolean rewrite, List<IntervalsSource> subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sourcesstatic IntervalsSource
Intervals. or(boolean rewrite, IntervalsSource... subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sourcesstatic IntervalsSource
Intervals. or(List<IntervalsSource> subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sourcesstatic IntervalsSource
Intervals. or(IntervalsSource... subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sources Automatically rewrites if wrapped by an interval source that is sensitive to internal gapsstatic IntervalsSource
Intervals. ordered(IntervalsSource... subSources)
Create an orderedIntervalsSource
Returns intervals in which the subsources all appear in the given orderstatic IntervalsSource
Intervals. overlapping(IntervalsSource source, IntervalsSource reference)
Returns intervals from a source that overlap with intervals from another sourcestatic IntervalsSource
Intervals. phrase(String... terms)
Return anIntervalsSource
exposing intervals for a phrase consisting of a list of termsstatic IntervalsSource
Intervals. phrase(IntervalsSource... subSources)
Return anIntervalsSource
exposing intervals for a phrase consisting of a list of IntervalsSourcesstatic IntervalsSource
Intervals. prefix(BytesRef prefix)
Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Intervals. prefix(BytesRef prefix, int maxExpansions)
Expert: Return anIntervalsSource
over the disjunction of all terms that begin with a prefix WARNING: SettingmaxExpansions
to higher than the default value of 128 can be both slow and memory-intensivestatic IntervalsSource
Intervals. term(String term)
Return anIntervalsSource
exposing intervals for a termstatic IntervalsSource
Intervals. term(String term, Predicate<BytesRef> payloadFilter)
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Intervals. term(BytesRef term)
Return anIntervalsSource
exposing intervals for a termstatic IntervalsSource
Intervals. term(BytesRef term, Predicate<BytesRef> payloadFilter)
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Intervals. unordered(IntervalsSource... subSources)
Create an unorderedIntervalsSource
Returns intervals in which all the subsources appear.static IntervalsSource
Intervals. unorderedNoOverlaps(IntervalsSource a, IntervalsSource b)
Create an unorderedIntervalsSource
allowing no overlaps between subsources Returns intervals in which both the subsources appear and do not overlap.static IntervalsSource
Intervals. wildcard(BytesRef wildcard)
Return anIntervalsSource
over the disjunction of all terms that match a wildcard globstatic IntervalsSource
Intervals. wildcard(BytesRef wildcard, int maxExpansions)
Expert: Return anIntervalsSource
over the disjunction of all terms that match a wildcard glob WARNING: SettingmaxExpansions
to higher than the default value of 128 can be both slow and memory-intensivestatic 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 referenceMethods in org.apache.lucene.queries.intervals that return types with arguments of type IntervalsSource Modifier and Type Method Description Collection<IntervalsSource>
FilteredIntervalsSource. pullUpDisjunctions()
abstract Collection<IntervalsSource>
IntervalsSource. pullUpDisjunctions()
Expert: return the set of disjunctions that make up this IntervalsSource Most implementations can returnCollections.singleton(this)
Methods in org.apache.lucene.queries.intervals with parameters of type IntervalsSource Modifier and Type Method Description static IntervalsSource
Intervals. after(IntervalsSource source, IntervalsSource reference)
Returns intervals from the source that appear after intervals from the referencestatic IntervalsSource
Intervals. atLeast(int minShouldMatch, IntervalsSource... sources)
Return intervals that span combinations of intervals fromminShouldMatch
of the sourcesstatic IntervalsSource
Intervals. before(IntervalsSource source, IntervalsSource reference)
Returns intervals from the source that appear before intervals from the referencestatic IntervalsSource
Intervals. containedBy(IntervalsSource small, IntervalsSource big)
Create a contained-byIntervalsSource
Returns intervals from the small query that appear within intervals of the big querystatic IntervalsSource
Intervals. containing(IntervalsSource big, IntervalsSource small)
Create a containingIntervalsSource
Returns intervals from the big source that contain one or more intervals from the small sourcestatic IntervalsSource
Intervals. extend(IntervalsSource source, int before, int after)
Create anIntervalsSource
that wraps another source, extending its intervals by a number of positions before and after.static IntervalsSource
Intervals. fixField(String field, IntervalsSource source)
Create anIntervalsSource
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
Intervals. maxgaps(int gaps, IntervalsSource subSource)
Create anIntervalsSource
that filters a sub-source by its gapsstatic IntervalsSource
FilteredIntervalsSource. maxGaps(IntervalsSource in, int maxGaps)
static IntervalsSource
Intervals. maxwidth(int width, IntervalsSource subSource)
Create anIntervalsSource
that filters a sub-source by the width of its intervalsstatic IntervalsSource
FilteredIntervalsSource. maxWidth(IntervalsSource in, int maxWidth)
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 subtrahendstatic IntervalsSource
Intervals. notContainedBy(IntervalsSource small, IntervalsSource big)
Create a not-contained-byIntervalsSource
Returns intervals from the smallIntervalsSource
that do not appear within intervals from the bigIntervalsSource
.static IntervalsSource
Intervals. notContaining(IntervalsSource minuend, IntervalsSource subtrahend)
Create a not-containingIntervalsSource
Returns intervals from the minuend that do not contain intervals of the subtrahendstatic IntervalsSource
Intervals. notWithin(IntervalsSource minuend, int positions, IntervalsSource subtrahend)
Create a not-withinIntervalsSource
Returns intervals of the minuend that do not appear within a set number of positions of intervals from the subtrahend querystatic IntervalsSource
Intervals. or(boolean rewrite, IntervalsSource... subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sourcesstatic IntervalsSource
Intervals. or(IntervalsSource... subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sources Automatically rewrites if wrapped by an interval source that is sensitive to internal gapsstatic IntervalsSource
Intervals. ordered(IntervalsSource... subSources)
Create an orderedIntervalsSource
Returns intervals in which the subsources all appear in the given orderstatic IntervalsSource
Intervals. overlapping(IntervalsSource source, IntervalsSource reference)
Returns intervals from a source that overlap with intervals from another sourcestatic IntervalsSource
Intervals. phrase(IntervalsSource... subSources)
Return anIntervalsSource
exposing intervals for a phrase consisting of a list of IntervalsSourcesstatic IntervalsSource
Intervals. unordered(IntervalsSource... subSources)
Create an unorderedIntervalsSource
Returns intervals in which all the subsources appear.static IntervalsSource
Intervals. unorderedNoOverlaps(IntervalsSource a, IntervalsSource b)
Create an unorderedIntervalsSource
allowing no overlaps between subsources Returns intervals in which both the subsources appear and do not overlap.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 referenceMethod parameters in org.apache.lucene.queries.intervals with type arguments of type IntervalsSource Modifier and Type Method Description static IntervalsSource
Intervals. or(boolean rewrite, List<IntervalsSource> subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sourcesstatic IntervalsSource
Intervals. or(List<IntervalsSource> subSources)
Return anIntervalsSource
over the disjunction of a set of sub-sourcesConstructors in org.apache.lucene.queries.intervals with parameters of type IntervalsSource Constructor Description FilteredIntervalsSource(String name, IntervalsSource in)
Create a new FilteredIntervalsSourceIntervalQuery(String field, IntervalsSource intervalsSource)
Create a new IntervalQueryIntervalQuery(String field, IntervalsSource intervalsSource, float pivot)
Create a new IntervalQuery with a scoring pivotIntervalQuery(String field, IntervalsSource intervalsSource, float pivot, float exp)
Create a new IntervalQuery with a scoring pivot and exponent
-