Package org.elasticsearch.index.query
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.Match
public abstract class IntervalsSourceProvider extends java.lang.Object implements NamedWriteable, ToXContentFragment
Factory class forIntervalsSourceBuilt-in sources includeIntervalsSourceProvider.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; andIntervalsSourceProvider.Disjunction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervalsSourceProvider.Combinestatic classIntervalsSourceProvider.Disjunctionstatic classIntervalsSourceProvider.IntervalFilterstatic classIntervalsSourceProvider.Match-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description IntervalsSourceProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(java.lang.Object other)static IntervalsSourceProviderfromXContent(XContentParser parser)abstract org.apache.lucene.search.intervals.IntervalsSourcegetSource(QueryShardContext context, MappedFieldType fieldType)abstract inthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
getSource
public abstract org.apache.lucene.search.intervals.IntervalsSource getSource(QueryShardContext context, MappedFieldType fieldType) throws java.io.IOException
- Throws:
java.io.IOException
-
hashCode
public abstract int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public abstract boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
fromXContent
public static IntervalsSourceProvider fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-