Uses of Class
org.apache.lucene.queries.intervals.IntervalsSource
-
Uses of IntervalsSource in org.apache.lucene.queries.intervals
Modifier and TypeClassDescriptionclass
An IntervalsSource that filters the intervals from another IntervalsSourceModifier and TypeMethodDescriptionstatic IntervalsSource
Intervals.after
(IntervalsSource source, IntervalsSource reference) Returns intervals from the source that appear after intervals from the referencestatic IntervalsSource
Intervals.analyzedText
(String text, Analyzer analyzer, String field, int maxGaps, boolean ordered) Returns intervals that correspond to tokens from aTokenStream
returned fortext
by applying the providedAnalyzer
as iftext
was the content of the givenfield
.static IntervalsSource
Intervals.analyzedText
(TokenStream tokenStream, int maxGaps, boolean ordered) Returns intervals that correspond to tokens from the providedTokenStream
.static 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
static IntervalsSource
Intervals.containing
(IntervalsSource big, IntervalsSource small) Create a containingIntervalsSource
static 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 fieldstatic IntervalsSource
A fuzzy termIntervalsSource
matches the disjunction of intervals of terms that are within the specifiedmaxEdits
from the provided term.static IntervalsSource
Intervals.fuzzyTerm
(String term, int maxEdits, int prefixLength, boolean transpositions, int maxExpansions) A fuzzy termIntervalsSource
matches the disjunction of intervals of terms that are within the specifiedmaxEdits
from the provided term.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
(CompiledAutomaton ca, int maxExpansions, String pattern) Expert: Return anIntervalsSource
over the disjunction of all terms that are accepted by the given automatonstatic IntervalsSource
Intervals.multiterm
(CompiledAutomaton ca, String pattern) Expert: Return anIntervalsSource
over the disjunction of all terms that are accepted by the given automatonstatic IntervalsSource
Intervals.nonOverlapping
(IntervalsSource minuend, IntervalsSource subtrahend) Create a non-overlapping IntervalsSourcestatic IntervalsSource
Intervals.notContainedBy
(IntervalsSource small, IntervalsSource big) Create a not-contained-byIntervalsSource
static IntervalsSource
Intervals.notContaining
(IntervalsSource minuend, IntervalsSource subtrahend) Create a not-containingIntervalsSource
static IntervalsSource
Intervals.notWithin
(IntervalsSource minuend, int positions, IntervalsSource subtrahend) Create a not-withinIntervalsSource
static 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-sourcesstatic IntervalsSource
Intervals.ordered
(IntervalsSource... subSources) Create an orderedIntervalsSource
static IntervalsSource
Intervals.overlapping
(IntervalsSource source, IntervalsSource reference) Returns intervals from a source that overlap with intervals from another sourcestatic IntervalsSource
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 ofinterval sources
static IntervalsSource
Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Expert: Return anIntervalsSource
over the disjunction of all terms that begin with a prefixstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a termstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSource
Return anIntervalsSource
exposing intervals for a termstatic IntervalsSource
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
.static IntervalsSource
Intervals.unorderedNoOverlaps
(IntervalsSource a, IntervalsSource b) Create an unorderedIntervalsSource
allowing no overlaps between subsourcesstatic IntervalsSource
Return anIntervalsSource
over the disjunction of all terms that match a wildcard globstatic IntervalsSource
Expert: Return anIntervalsSource
over the disjunction of all terms that match a wildcard globstatic 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 referenceModifier and TypeMethodDescriptionFilteredIntervalsSource.pullUpDisjunctions()
abstract Collection<IntervalsSource>
IntervalsSource.pullUpDisjunctions()
Expert: return the set of disjunctions that make up this IntervalsSourceModifier and TypeMethodDescriptionstatic 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
static IntervalsSource
Intervals.containing
(IntervalsSource big, IntervalsSource small) Create a containingIntervalsSource
static 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 fieldstatic 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 IntervalsSourcestatic IntervalsSource
Intervals.notContainedBy
(IntervalsSource small, IntervalsSource big) Create a not-contained-byIntervalsSource
static IntervalsSource
Intervals.notContaining
(IntervalsSource minuend, IntervalsSource subtrahend) Create a not-containingIntervalsSource
static IntervalsSource
Intervals.notWithin
(IntervalsSource minuend, int positions, IntervalsSource subtrahend) Create a not-withinIntervalsSource
static 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-sourcesstatic IntervalsSource
Intervals.ordered
(IntervalsSource... subSources) Create an orderedIntervalsSource
static 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 ofinterval sources
static IntervalsSource
Intervals.unordered
(IntervalsSource... subSources) Create an unorderedIntervalsSource
.static IntervalsSource
Intervals.unorderedNoOverlaps
(IntervalsSource a, IntervalsSource b) Create an unorderedIntervalsSource
allowing no overlaps between subsourcesstatic 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 referenceModifier and TypeMethodDescriptionstatic 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-sourcesModifierConstructorDescriptionFilteredIntervalsSource
(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