Class TermSuggestOption.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TermSuggestOption.Builder>
co.elastic.clients.elasticsearch.core.search.TermSuggestOption.Builder
- All Implemented Interfaces:
WithJson<TermSuggestOption.Builder>
,ObjectBuilder<TermSuggestOption>
- Enclosing class:
- TermSuggestOption
public static class TermSuggestOption.Builder
extends WithJsonObjectBuilderBase<TermSuggestOption.Builder>
implements ObjectBuilder<TermSuggestOption>
Builder for
TermSuggestOption
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTermSuggestOption
.collateMatch
(Boolean value) API name:collate_match
freq
(long value) Required - API name:freq
highlighted
(String value) API name:highlighted
score
(double value) Required - API name:score
protected TermSuggestOption.Builder
self()
Required - API name:text
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
Required - API name:text
-
score
Required - API name:score
-
freq
Required - API name:freq
-
highlighted
API name:highlighted
-
collateMatch
API name:collate_match
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TermSuggestOption.Builder>
-
build
Builds aTermSuggestOption
.- Specified by:
build
in interfaceObjectBuilder<TermSuggestOption>
- Throws:
NullPointerException
- if some of the required fields are null.
-