Package org.elasticsearch.index.query
Class IntervalBuilder
org.elasticsearch.index.query.IntervalBuilder
public abstract class IntervalBuilder
extends
Constructs an IntervalsSource based on analyzed text
-
Constructor Summary
ConstructorDescriptionfield, org.apache.lucene.analysis.Analyzer analyzer)
-
Method Summary
Modifier and TypeMethodDescriptionprotected <org.apache.lucene.queries.intervals.IntervalsSource>
analyzeGraph(org.apache.lucene.analysis.TokenStream source)
protected org.apache.lucene.queries.intervals.IntervalsSource
analyzeSynonyms(org.apache.lucene.analysis.TokenStream ts, int maxGaps, boolean ordered)
protected org.apache.lucene.queries.intervals.IntervalsSource
analyzeTerm(org.apache.lucene.analysis.TokenStream ts)
protected <org.apache.lucene.queries.intervals.IntervalsSource>
analyzeTerms(org.apache.lucene.analysis.TokenStream ts)
org.apache.lucene.queries.intervals.IntervalsSource
query, int maxGaps, boolean ordered)
protected org.apache.lucene.queries.intervals.IntervalsSource
analyzeText(org.apache.lucene.analysis.CachingTokenFilter stream, int maxGaps, boolean ordered)
protected static org.apache.lucene.queries.intervals.IntervalsSource
<org.apache.lucene.queries.intervals.IntervalsSource> sources, int maxGaps, boolean ordered)
static org.apache.lucene.queries.intervals.IntervalsSource
extend(org.apache.lucene.queries.intervals.IntervalsSource source, int precedingSpaces)
protected abstract org.apache.lucene.queries.intervals.IntervalsSource
termIntervals(org.apache.lucene.util.BytesRef term)
Create term intervals for the provided term.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
IntervalBuilder
public IntervalBuilder( field, org.apache.lucene.analysis.Analyzer analyzer)
-
-
Method Details
-
termIntervals
protected abstract org.apache.lucene.queries.intervals.IntervalsSource termIntervals(org.apache.lucene.util.BytesRef term)Create term intervals for the provided term. -
analyzeText
public org.apache.lucene.queries.intervals.IntervalsSource analyzeText( query, int maxGaps, boolean ordered) throws- Throws:
-
analyzeText
protected org.apache.lucene.queries.intervals.IntervalsSource analyzeText(org.apache.lucene.analysis.CachingTokenFilter stream, int maxGaps, boolean ordered) throws- Throws:
-
analyzeTerm
protected org.apache.lucene.queries.intervals.IntervalsSource analyzeTerm(org.apache.lucene.analysis.TokenStream ts) throws- Throws:
-
combineSources
protected static org.apache.lucene.queries.intervals.IntervalsSource combineSources(<org.apache.lucene.queries.intervals.IntervalsSource> sources, int maxGaps, boolean ordered) -
analyzeTerms
protected <org.apache.lucene.queries.intervals.IntervalsSource> analyzeTerms(org.apache.lucene.analysis.TokenStream ts) throws- Throws:
-
extend
public static org.apache.lucene.queries.intervals.IntervalsSource extend(org.apache.lucene.queries.intervals.IntervalsSource source, int precedingSpaces) -
analyzeSynonyms
protected org.apache.lucene.queries.intervals.IntervalsSource analyzeSynonyms(org.apache.lucene.analysis.TokenStream ts, int maxGaps, boolean ordered) throws- Throws:
-
analyzeGraph
protected <org.apache.lucene.queries.intervals.IntervalsSource> analyzeGraph(org.apache.lucene.analysis.TokenStream source) throws- Throws:
-