Class MappingLimitSettingsTotalFields

java.lang.Object
co.elastic.clients.elasticsearch.indices.MappingLimitSettingsTotalFields
All Implemented Interfaces:
JsonpSerializable

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

  • Method Details

    • of

    • limit

      @Nullable public final String limit()
      The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance degradations and memory issues, especially in clusters with a high load or few resources.

      API name: limit

    • ignoreDynamicBeyondLimit

      @Nullable public final Boolean ignoreDynamicBeyondLimit()
      This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail. Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false. The fields that were not added to the mapping will be added to the _ignored field.

      API name: ignore_dynamic_beyond_limit

    • 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
    • setupMappingLimitSettingsTotalFieldsDeserializer

      protected static void setupMappingLimitSettingsTotalFieldsDeserializer(ObjectDeserializer<MappingLimitSettingsTotalFields.Builder> op)