Skip to content

Commit 7e024a7

Browse files
committed
spec update
1 parent 2f18cdc commit 7e024a7

File tree

2 files changed

+64
-17
lines changed

2 files changed

+64
-17
lines changed

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -966,18 +966,18 @@
966966
'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L72-L83',
967967
'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L85-L107',
968968
'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L269-L272',
969-
'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L539-L541',
970-
'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L543-L550',
971-
'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L552-L557',
972-
'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L559-L566',
969+
'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L548-L550',
970+
'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L552-L559',
971+
'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L561-L566',
972+
'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L568-L575',
973973
'indices._types.ManagedBy': 'indices/_types/DataStream.ts#L32-L37',
974974
'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L409-L422',
975-
'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L434-L441',
976-
'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L471-L477',
977-
'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L462-L469',
978-
'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L443-L451',
979-
'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L453-L460',
980-
'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L424-L432',
975+
'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L443-L450',
976+
'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L480-L486',
977+
'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L471-L478',
978+
'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L452-L460',
979+
'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L462-L469',
980+
'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L424-L441',
981981
'indices._types.Merge': 'indices/_types/IndexSettings.ts#L330-L332',
982982
'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L334-L337',
983983
'indices._types.NumericFielddata': 'indices/_types/NumericFielddata.ts#L22-L24',
@@ -1001,12 +1001,12 @@
10011001
'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L212-L215',
10021002
'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L217-L220',
10031003
'indices._types.SettingsSimilarityScripted': 'indices/_types/IndexSettings.ts#L222-L226',
1004-
'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L479-L484',
1005-
'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L491-L496',
1006-
'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L486-L489',
1004+
'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L488-L493',
1005+
'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L500-L505',
1006+
'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L495-L498',
10071007
'indices._types.SoftDeletes': 'indices/_types/IndexSettings.ts#L50-L63',
1008-
'indices._types.Storage': 'indices/_types/IndexSettings.ts#L498-L507',
1009-
'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L509-L537',
1008+
'indices._types.Storage': 'indices/_types/IndexSettings.ts#L507-L516',
1009+
'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L518-L546',
10101010
'indices._types.Translog': 'indices/_types/IndexSettings.ts#L339-L361',
10111011
'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L363-L378',
10121012
'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L380-L399',
@@ -1641,10 +1641,10 @@
16411641
if (hash.length > 1) {
16421642
hash = hash.substring(1);
16431643
}
1644-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/d15b4fd799a29465696f37ebaf16ed99af88f0b6/specification/" + (paths[hash] || "");
1644+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/21b532fe17fbe3d4dbcd224a54dd8c5e3670d56c/specification/" + (paths[hash] || "");
16451645
</script>
16461646
</head>
16471647
<body>
1648-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/d15b4fd799a29465696f37ebaf16ed99af88f0b6/specification/">Elasticsearch API specification</a>.
1648+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/21b532fe17fbe3d4dbcd224a54dd8c5e3670d56c/specification/">Elasticsearch API specification</a>.
16491649
</body>
16501650
</html>

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/MappingLimitSettingsTotalFields.java

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import co.elastic.clients.util.ObjectBuilder;
3030
import co.elastic.clients.util.WithJsonObjectBuilderBase;
3131
import jakarta.json.stream.JsonGenerator;
32+
import java.lang.Boolean;
3233
import java.lang.Long;
3334
import java.util.Objects;
3435
import java.util.function.Function;
@@ -62,11 +63,15 @@ public class MappingLimitSettingsTotalFields implements JsonpSerializable {
6263
@Nullable
6364
private final Long limit;
6465

66+
@Nullable
67+
private final Boolean ignoreDynamicBeyondLimit;
68+
6569
// ---------------------------------------------------------------------------------------------
6670

6771
private MappingLimitSettingsTotalFields(Builder builder) {
6872

6973
this.limit = builder.limit;
74+
this.ignoreDynamicBeyondLimit = builder.ignoreDynamicBeyondLimit;
7075

7176
}
7277

@@ -89,6 +94,22 @@ public final Long limit() {
8994
return this.limit;
9095
}
9196

97+
/**
98+
* This setting determines what happens when a dynamically mapped field would
99+
* exceed the total fields limit. When set to false (the default), the index
100+
* request of the document that tries to add a dynamic field to the mapping will
101+
* fail with the message Limit of total fields [X] has been exceeded. When set
102+
* to true, the index request will not fail. Instead, fields that would exceed
103+
* the limit are not added to the mapping, similar to dynamic: false. The fields
104+
* that were not added to the mapping will be added to the _ignored field.
105+
* <p>
106+
* API name: {@code ignore_dynamic_beyond_limit}
107+
*/
108+
@Nullable
109+
public final Boolean ignoreDynamicBeyondLimit() {
110+
return this.ignoreDynamicBeyondLimit;
111+
}
112+
92113
/**
93114
* Serialize this object to JSON.
94115
*/
@@ -105,6 +126,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
105126
generator.write(this.limit);
106127

107128
}
129+
if (this.ignoreDynamicBeyondLimit != null) {
130+
generator.writeKey("ignore_dynamic_beyond_limit");
131+
generator.write(this.ignoreDynamicBeyondLimit);
132+
133+
}
108134

109135
}
110136

@@ -125,6 +151,9 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
125151
@Nullable
126152
private Long limit;
127153

154+
@Nullable
155+
private Boolean ignoreDynamicBeyondLimit;
156+
128157
/**
129158
* The maximum number of fields in an index. Field and object mappings, as well
130159
* as field aliases count towards this limit. The limit is in place to prevent
@@ -139,6 +168,22 @@ public final Builder limit(@Nullable Long value) {
139168
return this;
140169
}
141170

171+
/**
172+
* This setting determines what happens when a dynamically mapped field would
173+
* exceed the total fields limit. When set to false (the default), the index
174+
* request of the document that tries to add a dynamic field to the mapping will
175+
* fail with the message Limit of total fields [X] has been exceeded. When set
176+
* to true, the index request will not fail. Instead, fields that would exceed
177+
* the limit are not added to the mapping, similar to dynamic: false. The fields
178+
* that were not added to the mapping will be added to the _ignored field.
179+
* <p>
180+
* API name: {@code ignore_dynamic_beyond_limit}
181+
*/
182+
public final Builder ignoreDynamicBeyondLimit(@Nullable Boolean value) {
183+
this.ignoreDynamicBeyondLimit = value;
184+
return this;
185+
}
186+
142187
@Override
143188
protected Builder self() {
144189
return this;
@@ -169,6 +214,8 @@ protected static void setupMappingLimitSettingsTotalFieldsDeserializer(
169214
ObjectDeserializer<MappingLimitSettingsTotalFields.Builder> op) {
170215

171216
op.add(Builder::limit, JsonpDeserializer.longDeserializer(), "limit");
217+
op.add(Builder::ignoreDynamicBeyondLimit, JsonpDeserializer.booleanDeserializer(),
218+
"ignore_dynamic_beyond_limit");
172219

173220
}
174221

0 commit comments

Comments
 (0)