Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PUT my-index-000001
```

::::{note}
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.
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.
::::


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public static Map<String, String> parseMeta(String name, Object metaObject) {
}
for (Object value : meta.values()) {
if (value instanceof String sValue) {
if (sValue.codePointCount(0, sValue.length()) > 50) {
if (sValue.codePointCount(0, sValue.length()) > 500) {
throw new MapperParsingException(
"[meta] values can't be longer than 50 chars, but got [" + value + "] for field [" + name + "]"
"[meta] values can't be longer than 500 chars, but got [" + value + "] for field [" + name + "]"
);
}
} else if (value == null) {
Expand Down