Class SynonymRuleRead
java.lang.Object
co.elastic.clients.elasticsearch.synonyms.SynonymRuleRead
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
GetSynonymRuleResponse
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<SynonymRuleRead>
Json deserializer forSynonymRuleRead
-
Constructor Summary
ModifierConstructorDescriptionprotected
SynonymRuleRead
(SynonymRuleRead.AbstractBuilder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
id()
Required - Synonym Rule identifiervoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends SynonymRuleRead.AbstractBuilder<BuilderT>>
voidsetupSynonymRuleReadDeserializer
(ObjectDeserializer<BuilderT> op) static SynonymRuleRead
final String
synonyms()
Required - Synonyms, in Solr format, that conform the synonym rule.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forSynonymRuleRead
-
-
Constructor Details
-
SynonymRuleRead
-
-
Method Details
-
synonymRuleReadOf
public static SynonymRuleRead synonymRuleReadOf(Function<SynonymRuleRead.Builder, ObjectBuilder<SynonymRuleRead>> fn) -
id
Required - Synonym Rule identifierAPI name:
id
-
synonyms
Required - Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2API name:
synonyms
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSynonymRuleReadDeserializer
protected static <BuilderT extends SynonymRuleRead.AbstractBuilder<BuilderT>> void setupSynonymRuleReadDeserializer(ObjectDeserializer<BuilderT> op)
-