Class CompletionSuggestOption.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CompletionSuggestOption.Builder<TDocument>>
co.elastic.clients.elasticsearch.core.search.CompletionSuggestOption.Builder<TDocument>
- All Implemented Interfaces:
WithJson<CompletionSuggestOption.Builder<TDocument>>,ObjectBuilder<CompletionSuggestOption<TDocument>>
- Enclosing class:
- CompletionSuggestOption<TDocument>
public static class CompletionSuggestOption.Builder<TDocument>
extends WithJsonObjectBuilderBase<CompletionSuggestOption.Builder<TDocument>>
implements ObjectBuilder<CompletionSuggestOption<TDocument>>
Builder for
CompletionSuggestOption.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCompletionSuggestOption.collateMatch(Boolean value) API name:collate_matchAPI name:contextsAPI name:contextsAPI name:fieldsAPI name:fieldsAPI name:_idAPI name:_indexAPI name:_routingAPI name:_scoreprotected CompletionSuggestOption.Builder<TDocument>self()API name:_sourceSerializer for TDocument.Required - API name:textMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collateMatch
API name:collate_match -
contexts
API name:contextsAdds all entries of
maptocontexts. -
contexts
API name:contextsAdds an entry to
contexts. -
fields
API name:fieldsAdds all entries of
maptofields. -
fields
API name:fieldsAdds an entry to
fields. -
id
API name:_id -
index
API name:_index -
routing
API name:_routing -
score
API name:_score -
source
API name:_source -
text
Required - API name:text -
tDocumentSerializer
public final CompletionSuggestOption.Builder<TDocument> tDocumentSerializer(@Nullable JsonpSerializer<TDocument> value) Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CompletionSuggestOption.Builder<TDocument>>
-
build
Builds aCompletionSuggestOption.- Specified by:
buildin interfaceObjectBuilder<TDocument>- Throws:
NullPointerException- if some of the required fields are null.
-