Skip to content

Commit febb1f9

Browse files
committed
[DOCS] Note clause limit in index.mapping.total_fields.limit docs (#48153)
Notes that you should increase the `indices.query.bool.max_clause_count` setting if you increase the `index.mapping.total_fields.limit` setting. Closes #46928.
1 parent 4ae9f6b commit febb1f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/reference/mapping.asciidoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ causing a mapping explosion:
8080
`index.mapping.total_fields.limit`::
8181
The maximum number of fields in an index. Field and object mappings, as well as
8282
field aliases count towards this limit. The default value is `1000`.
83+
+
84+
[IMPORTANT]
85+
====
86+
The limit is in place to prevent mappings and searches from becoming too
87+
large. Higher values can lead to performance degradations and memory issues,
88+
especially in clusters with a high load or few resources.
89+
90+
If you increase this setting, we recommend you also increase the
91+
<<search-settings,`indices.query.bool.max_clause_count`>> setting, which
92+
limits the maximum number of <<query-dsl-bool-query,boolean clauses>> in a query.
93+
====
8394

8495
`index.mapping.depth.limit`::
8596
The maximum depth for a field, which is measured as the number of inner

0 commit comments

Comments
 (0)