Skip to content

Commit 95e0a9d

Browse files
committed
Naively increase the meta field char limit 50->500
1 parent 6ed50e1 commit 95e0a9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PUT my-index-000001
2424
```
2525

2626
::::{note}
27-
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 50.
27+
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.
2828
::::
2929

3030

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public static Map<String, String> parseMeta(String name, Object metaObject) {
5454
}
5555
for (Object value : meta.values()) {
5656
if (value instanceof String sValue) {
57-
if (sValue.codePointCount(0, sValue.length()) > 50) {
57+
if (sValue.codePointCount(0, sValue.length()) > 500) {
5858
throw new MapperParsingException(
59-
"[meta] values can't be longer than 50 chars, but got [" + value + "] for field [" + name + "]"
59+
"[meta] values can't be longer than 500 chars, but got [" + value + "] for field [" + name + "]"
6060
);
6161
}
6262
} else if (value == null) {

0 commit comments

Comments
 (0)