Skip to content

[8.x] Analyze API to return 400 for wrong custom analyzer (#121568)#121815

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
mayya-sharipova:backport/8.x/pr-121568
Feb 5, 2025
Merged

[8.x] Analyze API to return 400 for wrong custom analyzer (#121568)#121815
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
mayya-sharipova:backport/8.x/pr-121568

Conversation

@mayya-sharipova
Copy link
Contributor

Backports the following commits to 8.x:

If a custom analyzer provided in _analyze API can not be built, return
400 instead of the current 500. This most probably means that the user's
provided analyzer specifications are wrong.

Closes elastic#121443
@mayya-sharipova mayya-sharipova added :Search Relevance/Analysis How text is split into tokens >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Feb 5, 2025
@elasticsearchmachine elasticsearchmachine merged commit f7bd10b into elastic:8.x Feb 5, 2025
15 checks passed
@mayya-sharipova mayya-sharipova deleted the backport/8.x/pr-121568 branch February 5, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search Relevance/Analysis How text is split into tokens Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.19.0

2 participants