-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Dynamic max boolean clause counts #1526
Comments
Summarizing the review of #1527 with @reta and @nknize
I dont plan to work on this in the short term and if someone wants to drive this to closure, feel free to pick it up. |
This is actually a useful tool for multitenant clusters. |
More context on the issue:
(in 3.x, we would still support @nknize does it make sense? if yes, I could pick it up, thanks! |
@kkhatua yeah, I know, haven't gotten any feedback on the proposal :( |
Users in our org are facing this prob once we migrated to Opensearch from Elasticsearch. |
@reta - After going through various concerns from the lucene community and @nknize on PR #1527, I am wondering if having per query parameter makes sense? That ensures every (potentially) not so well written query fails atleast once on the default limit of 1024, and customer can deliberately choose higher limit at the cost of performance if their workload really needs it? |
@jainankitk you mean resuming discussion on [1] & [2]? I think it would make a lot of sense, because on OpenSearch side we cannot enforce this limit in isolation since Lucene applies static limits across the board. [1] apache/lucene#8931 |
Is your feature request related to a problem? Please describe.
As query shapes evolve, there have been multiple requests by users ato dynamically change limits on max clauses allowed for a boolean query. Today, this is a static setting
indices.query.bool.max_clause_count
that defaults to 1024. Any change requires a yml change and rolling restart of the cluster which is not convenientOn hitting an error like
TooManyClauses: maxClauseCount is set to 1024
, while a re-look at query is always recommended, but in scenarios where larger clauses are required, we should allow supporting thoseDescribe the solution you'd like
Make
indices.query.bool.max_clause_count
a dynamic setting which can then be dynamically updated via settings update likeThe text was updated successfully, but these errors were encountered: