Skip to content

Document HTTP 400 for too_many_clauses and too_many_nested_clauses errors#12446

Open
russcam wants to merge 1 commit into
opensearch-project:mainfrom
russcam:russcam/too-many-clauses-bad-request
Open

Document HTTP 400 for too_many_clauses and too_many_nested_clauses errors#12446
russcam wants to merge 1 commit into
opensearch-project:mainfrom
russcam:russcam/too-many-clauses-bad-request

Conversation

@russcam
Copy link
Copy Markdown
Contributor

@russcam russcam commented May 19, 2026

Description

Relates: opensearch-project/OpenSearch#21725

Queries that exceed indices.query.bool.max_clause_count now respond with HTTP 400 instead of 500. Hitting this limit is a request-side problem (simplify the query or raise the operator-configured cap), so a client error is the correct response.

Version

Unreleased

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…rors

Relates: opensearch-project/OpenSearch#21725

Queries that exceed indices.query.bool.max_clause_count now respond
with HTTP 400 instead of 500. Hitting this limit is a request-side
problem (simplify the query or raise the operator-configured cap),
so a client error is the correct response.

Signed-off-by: Russ Cam <rcam@atlassian.com>
@github-actions github-actions Bot added the Tech review PR: Tech review in progress label May 19, 2026
@github-actions
Copy link
Copy Markdown

Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Merged.

Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer.

When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tech review PR: Tech review in progress v-TBD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants