Class IntervalBuilder

java.lang.Object
org.elasticsearch.index.query.IntervalBuilder

public abstract class IntervalBuilder extends Object
Constructs an IntervalsSource based on analyzed text
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntervalBuilder(String field, org.apache.lucene.analysis.Analyzer analyzer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IntervalBuilder

      public IntervalBuilder(String 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(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