Uses of Class
org.apache.lucene.queries.intervals.IntervalsSource
-
Packages that use IntervalsSource Package Description org.apache.lucene.queries.intervals org.elasticsearch.index.mapper org.elasticsearch.index.query -
-
Uses of IntervalsSource in org.apache.lucene.queries.intervals
Subclasses of IntervalsSource in org.apache.lucene.queries.intervals Modifier and Type Class Description classFilteredIntervalsSourceAn IntervalsSource that filters the intervals from another IntervalsSourceFields in org.apache.lucene.queries.intervals declared as IntervalsSource Modifier and Type Field Description protected IntervalsSourceFilteredIntervalsSource. inMethods in org.apache.lucene.queries.intervals that return IntervalsSource Modifier and Type Method Description static IntervalsSourceIntervals. after(IntervalsSource source, IntervalsSource reference)Returns intervals from the source that appear after intervals from the referencestatic IntervalsSourceIntervals. atLeast(int minShouldMatch, IntervalsSource... sources)Return intervals that span combinations of intervals fromminShouldMatchof the sourcesstatic IntervalsSourceIntervals. before(IntervalsSource source, IntervalsSource reference)Returns intervals from the source that appear before intervals from the referencestatic IntervalsSourceIntervals. containedBy(IntervalsSource small, IntervalsSource big)Create a contained-byIntervalsSourceReturns intervals from the small query that appear within intervals of the big querystatic IntervalsSourceIntervals. containing(IntervalsSource big, IntervalsSource small)Create a containingIntervalsSourceReturns intervals from the big source that contain one or more intervals from the small sourcestatic IntervalsSourceIntervals. extend(IntervalsSource source, int before, int after)Create anIntervalsSourcethat wraps another source, extending its intervals by a number of positions before and after.static IntervalsSourceIntervals. fixField(String field, IntervalsSource source)Create anIntervalsSourcethat 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 IntervalsSourceIntervals. maxgaps(int gaps, IntervalsSource subSource)Create anIntervalsSourcethat filters a sub-source by its gapsstatic IntervalsSourceFilteredIntervalsSource. maxGaps(IntervalsSource in, int maxGaps)static IntervalsSourceIntervals. maxwidth(int width, IntervalsSource subSource)Create anIntervalsSourcethat filters a sub-source by the width of its intervalsstatic IntervalsSourceFilteredIntervalsSource. maxWidth(IntervalsSource in, int maxWidth)static IntervalsSourceIntervals. multiterm(Automaton automaton, int maxExpansions, String pattern)Expert: Return anIntervalsSourceover the disjunction of all terms that's accepted by the given automaton WARNING: SettingmaxExpansionsto higher than the default value of 128 can be both slow and memory-intensivestatic IntervalsSourceIntervals. multiterm(Automaton automaton, String pattern)Expert: Return anIntervalsSourceover the disjunction of all terms that's accepted by the given automatonstatic IntervalsSourceIntervals. nonOverlapping(IntervalsSource minuend, IntervalsSource subtrahend)Create a non-overlapping IntervalsSource Returns intervals of the minuend that do not overlap with intervals from the subtrahendstatic IntervalsSourceIntervals. notContainedBy(IntervalsSource small, IntervalsSource big)Create a not-contained-byIntervalsSourceReturns intervals from the smallIntervalsSourcethat do not appear within intervals from the bigIntervalsSource.static IntervalsSourceIntervals. notContaining(IntervalsSource minuend, IntervalsSource subtrahend)Create a not-containingIntervalsSourceReturns intervals from the minuend that do not contain intervals of the subtrahendstatic IntervalsSourceIntervals. notWithin(IntervalsSource minuend, int positions, IntervalsSource subtrahend)Create a not-withinIntervalsSourceReturns intervals of the minuend that do not appear within a set number of positions of intervals from the subtrahend querystatic IntervalsSourceIntervals. or(boolean rewrite, List<IntervalsSource> subSources)Return anIntervalsSourceover the disjunction of a set of sub-sourcesstatic IntervalsSourceIntervals. or(boolean rewrite, IntervalsSource... subSources)Return anIntervalsSourceover the disjunction of a set of sub-sourcesstatic IntervalsSourceIntervals. or(List<IntervalsSource> subSources)Return anIntervalsSourceover the disjunction of a set of sub-sourcesstatic IntervalsSourceIntervals. or(IntervalsSource... subSources)Return anIntervalsSourceover the disjunction of a set of sub-sources Automatically rewrites if wrapped by an interval source that is sensitive to internal gapsstatic IntervalsSourceIntervals. ordered(IntervalsSource... subSources)Create an orderedIntervalsSourceReturns intervals in which the subsources all appear in the given orderstatic IntervalsSourceIntervals. overlapping(IntervalsSource source, IntervalsSource reference)Returns intervals from a source that overlap with intervals from another sourcestatic IntervalsSourceIntervals. phrase(String... terms)Return anIntervalsSourceexposing intervals for a phrase consisting of a list of termsstatic IntervalsSourceIntervals. phrase(IntervalsSource... subSources)Return anIntervalsSourceexposing intervals for a phrase consisting of a list of IntervalsSourcesstatic IntervalsSourceIntervals. prefix(BytesRef prefix)Return anIntervalsSourceover the disjunction of all terms that begin with a prefixstatic IntervalsSourceIntervals. prefix(BytesRef prefix, int maxExpansions)Expert: Return anIntervalsSourceover the disjunction of all terms that begin with a prefix WARNING: SettingmaxExpansionsto higher than the default value of 128 can be both slow and memory-intensivestatic IntervalsSourceIntervals. term(String term)Return anIntervalsSourceexposing intervals for a termstatic IntervalsSourceIntervals. term(String term, Predicate<BytesRef> payloadFilter)Return anIntervalsSourceexposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSourceIntervals. term(BytesRef term)Return anIntervalsSourceexposing intervals for a termstatic IntervalsSourceIntervals. term(BytesRef term, Predicate<BytesRef> payloadFilter)Return anIntervalsSourceexposing intervals for a term, filtered by the value of the term's payload at each positionstatic IntervalsSourceIntervals. unordered(IntervalsSource... subSources)Create an unorderedIntervalsSourceReturns intervals in which all the subsources appear.static IntervalsSourceIntervals. unorderedNoOverlaps(IntervalsSource a, IntervalsSource b)Create an unorderedIntervalsSourceallowing no overlaps between subsources Returns intervals in which both the subsources appear and do not overlap.static IntervalsSourceIntervals. wildcard(BytesRef wildcard)Return anIntervalsSourceover the disjunction of all terms that match a wildcard globstatic IntervalsSourceIntervals. wildcard(BytesRef wildcard, int maxExpansions)Expert: Return anIntervalsSourceover the disjunction of all terms that match a wildcard glob WARNING: SettingmaxExpansionsto higher than the default value of 128 can be both slow and memory-intensivestatic IntervalsSourceIntervals. 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 IntervalsSourceIntervals. after(IntervalsSource source, IntervalsSource reference)Returns intervals from the source that appear after intervals from the referencestatic IntervalsSourceIntervals. atLeast(int minShouldMatch, IntervalsSource... sources)Return intervals that span combinations of intervals fromminShouldMatchof the sourcesstatic IntervalsSourceIntervals. before(IntervalsSource source, IntervalsSource reference)Returns intervals from the source that appear before intervals from the referencestatic IntervalsSourceIntervals. containedBy(IntervalsSource small, IntervalsSource big)Create a contained-byIntervalsSourceReturns intervals from the small query that appear within intervals of the big querystatic IntervalsSourceIntervals. containing(IntervalsSource big, IntervalsSource small)Create a containingIntervalsSourceReturns intervals from the big source that contain one or more intervals from the small sourcestatic IntervalsSourceIntervals. extend(IntervalsSource source, int before, int after)Create anIntervalsSourcethat wraps another source, extending its intervals by a number of positions before and after.static IntervalsSourceIntervals. fixField(String field, IntervalsSource source)Create anIntervalsSourcethat 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 IntervalsSourceIntervals. maxgaps(int gaps, IntervalsSource subSource)Create anIntervalsSourcethat filters a sub-source by its gapsstatic IntervalsSourceFilteredIntervalsSource. maxGaps(IntervalsSource in, int maxGaps)static IntervalsSourceIntervals. maxwidth(int width, IntervalsSource subSource)Create anIntervalsSourcethat filters a sub-source by the width of its intervalsstatic IntervalsSourceFilteredIntervalsSource. maxWidth(IntervalsSource in, int maxWidth)static IntervalsSourceIntervals. nonOverlapping(IntervalsSource minuend, IntervalsSource subtrahend)Create a non-overlapping IntervalsSource Returns intervals of the minuend that do not overlap with intervals from the subtrahendstatic IntervalsSourceIntervals. notContainedBy(IntervalsSource small, IntervalsSource big)Create a not-contained-byIntervalsSourceReturns intervals from the smallIntervalsSourcethat do not appear within intervals from the bigIntervalsSource.static IntervalsSourceIntervals. notContaining(IntervalsSource minuend, IntervalsSource subtrahend)Create a not-containingIntervalsSourceReturns intervals from the minuend that do not contain intervals of the subtrahendstatic IntervalsSourceIntervals. notWithin(IntervalsSource minuend, int positions, IntervalsSource subtrahend)Create a not-withinIntervalsSourceReturns intervals of the minuend that do not appear within a set number of positions of intervals from the subtrahend querystatic IntervalsSourceIntervals. or(boolean rewrite, IntervalsSource... subSources)Return anIntervalsSourceover the disjunction of a set of sub-sourcesstatic IntervalsSourceIntervals. or(IntervalsSource... subSources)Return anIntervalsSourceover the disjunction of a set of sub-sources Automatically rewrites if wrapped by an interval source that is sensitive to internal gapsstatic IntervalsSourceIntervals. ordered(IntervalsSource... subSources)Create an orderedIntervalsSourceReturns intervals in which the subsources all appear in the given orderstatic IntervalsSourceIntervals. overlapping(IntervalsSource source, IntervalsSource reference)Returns intervals from a source that overlap with intervals from another sourcestatic IntervalsSourceIntervals. phrase(IntervalsSource... subSources)Return anIntervalsSourceexposing intervals for a phrase consisting of a list of IntervalsSourcesstatic IntervalsSourceIntervals. unordered(IntervalsSource... subSources)Create an unorderedIntervalsSourceReturns intervals in which all the subsources appear.static IntervalsSourceIntervals. unorderedNoOverlaps(IntervalsSource a, IntervalsSource b)Create an unorderedIntervalsSourceallowing no overlaps between subsources Returns intervals in which both the subsources appear and do not overlap.static IntervalsSourceIntervals. 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 IntervalsSourceIntervals. or(boolean rewrite, List<IntervalsSource> subSources)Return anIntervalsSourceover the disjunction of a set of sub-sourcesstatic IntervalsSourceIntervals. or(List<IntervalsSource> subSources)Return anIntervalsSourceover 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 -
Uses of IntervalsSource in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper that return IntervalsSource Modifier and Type Method Description IntervalsSourceMappedFieldType. intervals(String query, int max_gaps, boolean ordered, NamedAnalyzer analyzer, boolean prefix)Create anIntervalsSourceto be used for proximity queriesIntervalsSourceTextFieldMapper.TextFieldType. intervals(String text, int maxGaps, boolean ordered, NamedAnalyzer analyzer, boolean prefix) -
Uses of IntervalsSource in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query that return IntervalsSource Modifier and Type Method Description protected IntervalsSourceIntervalBuilder. analyzeSynonyms(TokenStream ts, int maxGaps, boolean ordered)protected IntervalsSourceIntervalBuilder. analyzeTerm(TokenStream ts)IntervalsSourceIntervalBuilder. analyzeText(String query, int maxGaps, boolean ordered)protected IntervalsSourceIntervalBuilder. analyzeText(CachingTokenFilter stream, int maxGaps, boolean ordered)protected static IntervalsSourceIntervalBuilder. combineSources(List<IntervalsSource> sources, int maxGaps, boolean ordered)static IntervalsSourceIntervalBuilder. extend(IntervalsSource source, int precedingSpaces)IntervalsSourceIntervalsSourceProvider.IntervalFilter. filter(IntervalsSource input, QueryShardContext context, MappedFieldType fieldType)IntervalsSourceIntervalsSourceProvider.Combine. getSource(QueryShardContext ctx, MappedFieldType fieldType)IntervalsSourceIntervalsSourceProvider.Disjunction. getSource(QueryShardContext ctx, MappedFieldType fieldType)abstract IntervalsSourceIntervalsSourceProvider. getSource(QueryShardContext context, MappedFieldType fieldType)IntervalsSourceIntervalsSourceProvider.Match. getSource(QueryShardContext context, MappedFieldType fieldType)IntervalsSourceIntervalsSourceProvider.Prefix. getSource(QueryShardContext context, MappedFieldType fieldType)IntervalsSourceIntervalsSourceProvider.Wildcard. getSource(QueryShardContext context, MappedFieldType fieldType)Methods in org.elasticsearch.index.query that return types with arguments of type IntervalsSource Modifier and Type Method Description protected List<IntervalsSource>IntervalBuilder. analyzeGraph(TokenStream source)protected List<IntervalsSource>IntervalBuilder. analyzeTerms(TokenStream ts)Methods in org.elasticsearch.index.query with parameters of type IntervalsSource Modifier and Type Method Description static IntervalsSourceIntervalBuilder. extend(IntervalsSource source, int precedingSpaces)IntervalsSourceIntervalsSourceProvider.IntervalFilter. filter(IntervalsSource input, QueryShardContext context, MappedFieldType fieldType)Method parameters in org.elasticsearch.index.query with type arguments of type IntervalsSource Modifier and Type Method Description protected static IntervalsSourceIntervalBuilder. combineSources(List<IntervalsSource> sources, int maxGaps, boolean ordered)
-