Package org.elasticsearch.index.query
Class IntervalBuilder
java.lang.Object
org.elasticsearch.index.query.IntervalBuilder
Constructs an IntervalsSource based on analyzed text
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<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 List<org.apache.lucene.queries.intervals.IntervalsSource>
analyzeTerms(org.apache.lucene.analysis.TokenStream ts)
org.apache.lucene.queries.intervals.IntervalsSource
analyzeText(String 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
combineSources(List<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.
-
Constructor Details
-
IntervalBuilder
-
-
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(String query, int maxGaps, boolean ordered) throws IOException- Throws:
IOException
-
analyzeText
protected org.apache.lucene.queries.intervals.IntervalsSource analyzeText(org.apache.lucene.analysis.CachingTokenFilter stream, int maxGaps, boolean ordered) throws IOException- Throws:
IOException
-
analyzeTerm
protected org.apache.lucene.queries.intervals.IntervalsSource analyzeTerm(org.apache.lucene.analysis.TokenStream ts) throws IOException- Throws:
IOException
-
combineSources
protected static org.apache.lucene.queries.intervals.IntervalsSource combineSources(List<org.apache.lucene.queries.intervals.IntervalsSource> sources, int maxGaps, boolean ordered) -
analyzeTerms
protected List<org.apache.lucene.queries.intervals.IntervalsSource> analyzeTerms(org.apache.lucene.analysis.TokenStream ts) throws IOException- Throws:
IOException
-
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 IOException- Throws:
IOException
-
analyzeGraph
protected List<org.apache.lucene.queries.intervals.IntervalsSource> analyzeGraph(org.apache.lucene.analysis.TokenStream source) throws IOException- Throws:
IOException
-