Package org.elasticsearch.index.query
Class IntervalBuilder
- java.lang.Object
-
- org.elasticsearch.index.query.IntervalBuilder
-
public class IntervalBuilder extends Object
Constructs an IntervalsSource based on analyzed text
-
-
Constructor Summary
Constructors Constructor Description IntervalBuilder(String field, Analyzer analyzer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<IntervalsSource>analyzeGraph(TokenStream source)protected IntervalsSourceanalyzeSynonyms(TokenStream ts, int maxGaps, boolean ordered)protected IntervalsSourceanalyzeTerm(TokenStream ts)protected List<IntervalsSource>analyzeTerms(TokenStream ts)IntervalsSourceanalyzeText(String query, int maxGaps, boolean ordered)protected IntervalsSourceanalyzeText(CachingTokenFilter stream, int maxGaps, boolean ordered)protected static IntervalsSourcecombineSources(List<IntervalsSource> sources, int maxGaps, boolean ordered)static IntervalsSourceextend(IntervalsSource source, int precedingSpaces)
-
-
-
Method Detail
-
analyzeText
public IntervalsSource analyzeText(String query, int maxGaps, boolean ordered) throws IOException
- Throws:
IOException
-
analyzeText
protected IntervalsSource analyzeText(CachingTokenFilter stream, int maxGaps, boolean ordered) throws IOException
- Throws:
IOException
-
analyzeTerm
protected IntervalsSource analyzeTerm(TokenStream ts) throws IOException
- Throws:
IOException
-
combineSources
protected static IntervalsSource combineSources(List<IntervalsSource> sources, int maxGaps, boolean ordered)
-
analyzeTerms
protected List<IntervalsSource> analyzeTerms(TokenStream ts) throws IOException
- Throws:
IOException
-
extend
public static IntervalsSource extend(IntervalsSource source, int precedingSpaces)
-
analyzeSynonyms
protected IntervalsSource analyzeSynonyms(TokenStream ts, int maxGaps, boolean ordered) throws IOException
- Throws:
IOException
-
analyzeGraph
protected List<IntervalsSource> analyzeGraph(TokenStream source) throws IOException
- Throws:
IOException
-
-