Skip to content

Commit 4282385

Browse files
committed
Min val should be 0, restored deleted comment
1 parent 1f65597 commit 4282385

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/reference/elasticsearch/mapping-reference/mapping-field-meta.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ PUT my-index-000001
2525

2626
::::{note}
2727
Field metadata enforces at most 5 entries, that keys have a length that is less than or equal to 20, and that values are strings whose length is less than or equal to 500.
28+
The value limit is configurable, with the index setting: `index.mapping.meta.length_limit`.
2829
::::
2930

3031

server/src/main/java/org/elasticsearch/index/IndexSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,8 @@ private static String getIgnoreAboveDefaultValue(final Settings settings) {
858858

859859
public static final Setting<Integer> INDEX_MAPPING_META_LENGTH_LIMIT_SETTING = Setting.intSetting(
860860
"index.mapping.meta.length_limit",
861-
500, // default value
862-
20, // minimum value
861+
500,
862+
0,
863863
Property.IndexScope,
864864
Property.Final
865865
);

server/src/main/java/org/elasticsearch/index/mapper/TypeParsers.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
public class TypeParsers {
3030
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(TypeParsers.class);
3131

32+
/**
33+
* Parse the {@code meta} key of the mapping.
34+
*/
3235
public static Map<String, String> parseMeta(String name, Object metaObject, MappingParserContext parserContext) {
3336
if (metaObject instanceof Map == false) {
3437
throw new MapperParsingException(

0 commit comments

Comments
 (0)