-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
When calling the _analyze API, it should be a 4xx when dictionary files are missing #121443
Labels
>bug
:Search Relevance/Analysis
How text is split into tokens
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Comments
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
mayya-sharipova
added a commit
to mayya-sharipova/elasticsearch
that referenced
this issue
Feb 3, 2025
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 specificatons are wrong. Closes elastic#121443
mayya-sharipova
added a commit
to mayya-sharipova/elasticsearch
that referenced
this issue
Feb 5, 2025
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
added a commit
to mayya-sharipova/elasticsearch
that referenced
this issue
Feb 5, 2025
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
elasticsearchmachine
pushed a commit
that referenced
this issue
Feb 5, 2025
elasticsearchmachine
pushed a commit
that referenced
this issue
Feb 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Search Relevance/Analysis
How text is split into tokens
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Elasticsearch Version
any
Installed Plugins
No response
Java Version
bundled
OS Version
any
Problem Description
When calling the
_analyze
API, its possible to explore using it to see how things work with various dictionary files. However ,if a dictionary file is completely missing, this API throws a 5xx. For all analyzers that depend on user provided dictionaries, we should return a 4xx not a 5xx.Example: when using
hunspell
it should be a 4xx if the dictionary is missing as that needs to be provided by the admin of the cluster.Steps to Reproduce
Logs (if relevant)
Full error:
The text was updated successfully, but these errors were encountered: