-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Note clause limit in index.mapping.total_fields.limit docs
#48153
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
Conversation
Notes that you should increase the `indices.query.bool.max_clause_count` setting if you increase the `index.mapping.nested_objects.limit` setting. Elasticsearch converts queries on object fields to boolean query clauses. Increasing both settings ensures you can perform searches on object fields with a large number of nested properties. Closes #46928.
|
Pinging @elastic/es-search (:Search/Mapping) |
|
Pinging @elastic/es-docs (>docs) |
|
@jrodewig : the same comment should be added to |
jimczi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jrodewig , I left one comment
docs/reference/mapping.asciidoc
Outdated
| If you increase this setting, we recommend you also increase the | ||
| <<search-settings,`indices.query.bool.max_clause_count`>> setting, which | ||
| limits the maximum number of <<query-dsl-bool-query,boolean clauses>> in a query. | ||
| ==== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This limit is for the number of nested docs that are allowed on a single nested field. So by default we limit the number of nested documents in the array to 10,000 but that is not related to the boolean max clause.
I'd put the same sentence but in the description of index.mapping.total_fields.limit with a warning that too many fields in mapping and queries should be avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index.mapping.nested_objects.limit docsindex.mapping.total_fields.limit docs
jimczi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jrodewig
|
@elasticmachine run elasticsearch-ci/oss-distro-docs |
Notes that you should increase the
indices.query.bool.max_clause_countsetting if you increase theindex.mapping.nested_objects.limitsetting.Closes #46928.