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 Constructor Description Builder() -
Method Summary
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collateMatch
public final CompletionSuggestOption.Builder<TDocument> collateMatch(@Nullable java.lang.Boolean value)API name:collate_match -
contexts
public final CompletionSuggestOption.Builder<TDocument> contexts(java.util.Map<java.lang.String,java.util.List<Context>> map)API name:contextsAdds all entries of
maptocontexts. -
contexts
public final CompletionSuggestOption.Builder<TDocument> contexts(java.lang.String key, java.util.List<Context> value)API name:contextsAdds an entry to
contexts. -
fields
public final CompletionSuggestOption.Builder<TDocument> fields(java.util.Map<java.lang.String,JsonData> map)API name:fieldsAdds all entries of
maptofields. -
fields
public final CompletionSuggestOption.Builder<TDocument> fields(java.lang.String key, JsonData value)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:
java.lang.NullPointerException- if some of the required fields are null.
-