Class PutSynonymRuleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutSynonymRuleRequest.Builder>
co.elastic.clients.elasticsearch.synonyms.PutSynonymRuleRequest.Builder
- All Implemented Interfaces:
WithJson<PutSynonymRuleRequest.Builder>,ObjectBuilder<PutSynonymRuleRequest>
- Enclosing class:
- PutSynonymRuleRequest
public static class PutSynonymRuleRequest.Builder
extends RequestBase.AbstractBuilder<PutSynonymRuleRequest.Builder>
implements ObjectBuilder<PutSynonymRuleRequest>
Builder for
PutSynonymRuleRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutSynonymRuleRequest.Iftrue, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning.Required - The ID of the synonym rule to be updated or created.protected PutSynonymRuleRequest.Builderself()Required - The ID of the synonym set.Required - The synonym rule information definition, which must be in Solr format.Methods 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
-
refresh
Iftrue, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning. Iffalse, analyzers will not be reloaded with the new synonym ruleAPI name:
refresh -
ruleId
Required - The ID of the synonym rule to be updated or created.API name:
rule_id -
setId
Required - The ID of the synonym set.API name:
set_id -
synonyms
Required - The synonym rule information definition, which must be in Solr format.API name:
synonyms -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutSynonymRuleRequest.Builder>
-
build
Builds aPutSynonymRuleRequest.- Specified by:
buildin interfaceObjectBuilder<PutSynonymRuleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-