Skip to content

Dynamic max boolean clause counts #1526

Closed
@malpani

Description

@malpani

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 convenient

On 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 those

Describe the solution you'd like
Make indices.query.bool.max_clause_count a dynamic setting which can then be dynamically updated via settings update like

PUT /_cluster/settings --data '{
    "transient" : {
        "indices.query.bool.max_clause_count" : 2048
    }
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    SearchSearch query, autocomplete ...etcenhancementEnhancement or improvement to existing feature or requestv2.16.0Issues and PRs related to version 2.16.0v3.0.0Issues and PRs related to version 3.0.0

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions