Skip to content
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

Provide actionable error message for complex search queries #3233

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

jkppr
Copy link
Collaborator

@jkppr jkppr commented Nov 28, 2024

Catch TransportError for "too many nested clauses" and improve error message.

The change modifies OpenSearchDataStore.search to catch TransportError, specifically addressing the "too many nested clauses" issue in OpenSearch. It provides a user-friendly error message in both the frontend and logs, guiding users to refine their queries.

* Make search error messages more actionable
@jkppr jkppr added the Bug label Nov 28, 2024
@jkppr jkppr self-assigned this Nov 28, 2024
@jkppr jkppr requested a review from tomchop November 28, 2024 10:29
@jkppr jkppr merged commit cbefa31 into google:master Nov 28, 2024
24 checks passed
@jkppr jkppr deleted the fix_too_many_nested_clauses branch November 28, 2024 11:53
@jkppr jkppr mentioned this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants