Skip to content

[8.17] Update keyword documentation for logsdb (#126652) #126662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged
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
5 changes: 3 additions & 2 deletions docs/reference/data-streams/logs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ can be indexed without causing ingestion failures.
==== `ignore_above`

In `logsdb` index mode, the `index.mapping.ignore_above` setting is applied by default at the index level to ensure
efficient storage and indexing of large keyword fields.The index-level default for `ignore_above` is 8191
_characters._ Using UTF-8 encoding, this results in a limit of 32764 bytes, depending on character encoding.
efficient storage and indexing of large keyword fields. This applies to all members of the keyword type family (keyword,
constant_keyword, and wildcard). The index-level default for `ignore_above` is 8191 _characters._ Using UTF-8 encoding,
this results in a limit of 32764 bytes, depending on character encoding.

The mapping-level `ignore_above` setting takes precedence. If a specific field has an `ignore_above` value
defined in its mapping, that value overrides the index-level `index.mapping.ignore_above` value. This default
Expand Down
7 changes: 4 additions & 3 deletions docs/reference/mapping/types/keyword.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ The following parameters are accepted by `keyword` fields:
<<ignore-above,`ignore_above`>>::

Do not index any string longer than this value. Defaults to `2147483647`
so that all values would be accepted. Please however note that default
dynamic mapping rules create a sub `keyword` field that overrides this
default by setting `ignore_above: 256`.
in standard indices so that all values would be accepted, and `8191` in logsdb
indices to protect against Lucene's term byte-length limit of `32766`. Please
however note that default dynamic mapping rules create a sub `keyword` field
that overrides this default by setting `ignore_above: 256`.

<<mapping-index,`index`>>::

Expand Down
3 changes: 2 additions & 1 deletion docs/reference/mapping/types/wildcard.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ The following parameters are accepted by `wildcard` fields:
<<ignore-above,`ignore_above`>>::

Do not index any string longer than this value. Defaults to `2147483647`
so that all values would be accepted.
in standard indices so that all values would be accepted, and `8191` in
logsdb indices to protect against Lucene's term byte-length limit of `32766`.

[discrete]
==== Limitations
Expand Down