Package org.elasticsearch.search
Class SearchExtBuilder
- java.lang.Object
-
- org.elasticsearch.search.SearchExtBuilder
-
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment
public abstract class SearchExtBuilder extends java.lang.Object implements NamedWriteable, ToXContentFragment
Intermediate serializable representation of a search ext section. To be subclassed by plugins that support a custom section as part of a search request, which will be provided within the ext element. Any state needs to be serialized as part of theWriteable.writeTo(StreamOutput)method and read from the incoming stream, usually done adding a constructor that takesStreamInputas an argument. Registration happens throughSearchPlugin.getSearchExts(), which also needs aCheckedFunctionthat's able to parse the incoming request from the REST layer into the properSearchExtBuildersubclass.NamedWriteable.getWriteableName()must return the same name as the one used for the registration of theSearchPlugin.SearchExtSpec.- See Also:
SearchPlugin.SearchExtSpec
-
-
Nested Class Summary
-
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 SearchExtBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanequals(java.lang.Object obj)abstract inthashCode()-
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-