Class MappingLimitSettingsTotalFields.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MappingLimitSettingsTotalFields.Builder>
co.elastic.clients.elasticsearch.indices.MappingLimitSettingsTotalFields.Builder
- All Implemented Interfaces:
WithJson<MappingLimitSettingsTotalFields.Builder>
,ObjectBuilder<MappingLimitSettingsTotalFields>
- Enclosing class:
- MappingLimitSettingsTotalFields
public static class MappingLimitSettingsTotalFields.Builder
extends WithJsonObjectBuilderBase<MappingLimitSettingsTotalFields.Builder>
implements ObjectBuilder<MappingLimitSettingsTotalFields>
Builder for
MappingLimitSettingsTotalFields
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aMappingLimitSettingsTotalFields
.ignoreDynamicBeyondLimit
(Boolean value) This setting determines what happens when a dynamically mapped field would exceed the total fields limit.The maximum number of fields in an index.protected MappingLimitSettingsTotalFields.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
-
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
public final MappingLimitSettingsTotalFields.Builder ignoreDynamicBeyondLimit(@Nullable Boolean value) 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MappingLimitSettingsTotalFields.Builder>
-
build
Builds aMappingLimitSettingsTotalFields
.- Specified by:
build
in interfaceObjectBuilder<MappingLimitSettingsTotalFields>
- Throws:
NullPointerException
- if some of the required fields are null.
-