Skip to content

Commit c3c7206

Browse files
nik9000leemthompo
andauthored
Apply suggestions from code review
Co-authored-by: Liam Thompson <[email protected]>
1 parent 6f9f2bb commit c3c7206

File tree

1 file changed

+3
-4
lines changed
  • docs/reference/elasticsearch/mapping-reference

1 file changed

+3
-4
lines changed

docs/reference/elasticsearch/mapping-reference/keyword.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ The following parameters are accepted by `keyword` fields:
7070
: Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations.
7171

7272
[`ignore_above`](/reference/elasticsearch/mapping-reference/ignore-above.md)
73-
: Do not index any string with more characters than this value. This is important because `keyword`
74-
fields will reject documents with `keyword` fields that encode to utf-8 longer than `32766` bytes.
73+
: Do not index any field containing a string with more characters than this value. This is important because {{es}}
74+
will reject entire documents if they contain keyword fields that exceed `32766` bytes when UTF-8 encoded.
7575

76-
If you need to never reject documents, this should have some value `<=8191`. All documents with
77-
more characters will just skip building the index for this field.
76+
To avoid any risk of document rejection, set this value to `8191` or less. Fields with strings exceeding this length will be excluded from indexing.
7877

7978
The defaults are complicated. It's `2147483647` (effectively unbounded) in standard indices and
8079
`8191` in logsdb indices. So, if unspecified, standard indices *can* reject documents. And logsdb indices

0 commit comments

Comments
 (0)