Package | Description |
---|---|
org.apache.lucene.search.intervals |
Intervals queries
|
Modifier and Type | Class and Description |
---|---|
class |
FilteredIntervalsSource
An IntervalsSource that filters the intervals from another IntervalsSource
|
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
|
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(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 |
Intervals.maxgaps(int gaps,
IntervalsSource subSource)
Create an
IntervalsSource that filters a sub-source by its gaps |
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(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(String... terms)
Return an
IntervalsSource exposing intervals for a phrase consisting of a list of terms |
static IntervalsSource |
Intervals.prefix(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(String term)
Return an
IntervalsSource exposing intervals for a term |
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(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 |
---|---|
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
|
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(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 |
Intervals.maxgaps(int gaps,
IntervalsSource subSource)
Create an
IntervalsSource that filters a sub-source by its gaps |
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(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.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
|
Constructor and Description |
---|
FilteredIntervalsSource(String name,
IntervalsSource in)
Create a new FilteredIntervalsSource
|
IntervalQuery(String field,
IntervalsSource intervalsSource)
Create a new IntervalQuery
|
IntervalQuery(String field,
IntervalsSource intervalsSource,
float pivot)
Create a new IntervalQuery with a scoring pivot
|
IntervalQuery(String field,
IntervalsSource intervalsSource,
float pivot,
float exp)
Create a new IntervalQuery with a scoring pivot and exponent
|
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.