Class PhraseSuggestCollate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PhraseSuggestCollate.Builder>
co.elastic.clients.elasticsearch.core.search.PhraseSuggestCollate.Builder
- All Implemented Interfaces:
WithJson<PhraseSuggestCollate.Builder>
,ObjectBuilder<PhraseSuggestCollate>
- Enclosing class:
- PhraseSuggestCollate
public static class PhraseSuggestCollate.Builder
extends WithJsonObjectBuilderBase<PhraseSuggestCollate.Builder>
implements ObjectBuilder<PhraseSuggestCollate>
Builder for
PhraseSuggestCollate
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPhraseSuggestCollate
.Parameters to use if the query is templated.Parameters to use if the query is templated.Returns all suggestions with an extracollate_match
option indicating whether the generated phrase matched any document.query
(PhraseSuggestCollateQuery value) Required - A collate query that is run once for every suggestion.Required - A collate query that is run once for every suggestion.protected PhraseSuggestCollate.Builder
self()
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
-
params
Parameters to use if the query is templated.API name:
params
Adds all entries of
map
toparams
. -
params
Parameters to use if the query is templated.API name:
params
Adds an entry to
params
. -
prune
Returns all suggestions with an extracollate_match
option indicating whether the generated phrase matched any document.API name:
prune
-
query
Required - A collate query that is run once for every suggestion.API name:
query
-
query
public final PhraseSuggestCollate.Builder query(Function<PhraseSuggestCollateQuery.Builder, ObjectBuilder<PhraseSuggestCollateQuery>> fn) Required - A collate query that is run once for every suggestion.API name:
query
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PhraseSuggestCollate.Builder>
-
build
Builds aPhraseSuggestCollate
.- Specified by:
build
in interfaceObjectBuilder<PhraseSuggestCollate>
- Throws:
NullPointerException
- if some of the required fields are null.
-