Class IntervalsSourceProvider

java.lang.Object
org.elasticsearch.index.query.IntervalsSourceProvider
All Implemented Interfaces:
NamedWriteable, Writeable, ToXContent, ToXContentFragment
Direct Known Subclasses:
IntervalsSourceProvider.Combine, IntervalsSourceProvider.Disjunction, IntervalsSourceProvider.Fuzzy, IntervalsSourceProvider.Match, IntervalsSourceProvider.Prefix, IntervalsSourceProvider.Wildcard

public abstract class IntervalsSourceProvider
extends java.lang.Object
implements NamedWriteable, ToXContentFragment
Factory class for IntervalsSource Built-in sources include IntervalsSourceProvider.Match, which analyzes a text string and converts it to a proximity source (phrase, ordered or unordered depending on how strict the matching should be); IntervalsSourceProvider.Combine, which allows proximity queries between different sub-sources; and IntervalsSourceProvider.Disjunction.
  • Constructor Details

  • Method Details

    • getSource

      public abstract org.apache.lucene.queries.intervals.IntervalsSource getSource​(QueryShardContext context, MappedFieldType fieldType) throws java.io.IOException
      Throws:
      java.io.IOException
    • extractFields

      public abstract void extractFields​(java.util.Set<java.lang.String> fields)
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public abstract boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • fromXContent

      public static IntervalsSourceProvider fromXContent​(XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException