Class SynonymRule

java.lang.Object
co.elastic.clients.elasticsearch.synonyms.SynonymRule
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class SynonymRule extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • id

      @Nullable public final String id()
      The identifier for the synonym rule. If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch.

      API name: id

    • synonyms

      public final String synonyms()
      Required - The synonyms that conform the synonym rule in Solr format.

      API name: synonyms

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupSynonymRuleDeserializer

      protected static void setupSynonymRuleDeserializer(ObjectDeserializer<SynonymRule.Builder> op)