-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Error when doing a prefix search when the prefix is min_chars -1 #94364
Labels
>bug
:Search Relevance/Analysis
How text is split into tokens
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Comments
joancf
changed the title
Error when doing a prefix search when the prefix is min_prefix -1
Error when doing a prefix search when the prefix is min_chars -1
Mar 7, 2023
HiDAl
added
:Search Relevance/Analysis
How text is split into tokens
Team:Search
Meta label for search team
and removed
needs:triage
Requires assignment of a team area label
labels
Mar 7, 2023
Pinging @elastic/es-search (Team:Search) |
benwtrent
added a commit
that referenced
this issue
Mar 8, 2023
In certain scenarios, running a MultiTerm query sets a `null` rewrite method. While `null` is usually checked, there are branches in the code where this is not adequately checked. Additionally, `MultiTermQuery#setRewriteMethod` has been deprecated for a while. So, to correct this bug, - Remove calls to `MultiTermQuery#setRewriteMethod` where possible - Always check for `null` rewrite method closes: #94364
benwtrent
added a commit
to benwtrent/elasticsearch
that referenced
this issue
Mar 8, 2023
…c#94369) In certain scenarios, running a MultiTerm query sets a `null` rewrite method. While `null` is usually checked, there are branches in the code where this is not adequately checked. Additionally, `MultiTermQuery#setRewriteMethod` has been deprecated for a while. So, to correct this bug, - Remove calls to `MultiTermQuery#setRewriteMethod` where possible - Always check for `null` rewrite method closes: elastic#94364
elasticsearchmachine
pushed a commit
that referenced
this issue
Mar 8, 2023
#94399) In certain scenarios, running a MultiTerm query sets a `null` rewrite method. While `null` is usually checked, there are branches in the code where this is not adequately checked. Additionally, `MultiTermQuery#setRewriteMethod` has been deprecated for a while. So, to correct this bug, - Remove calls to `MultiTermQuery#setRewriteMethod` where possible - Always check for `null` rewrite method closes: #94364
javanna
added
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
and removed
Team:Search
Meta label for search team
labels
Jul 12, 2024
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
8.6.2
Installed Plugins
elastiknn-8.6.2.1.zip
Java Version
openjdk 18.0.2.1 2022-08-18
OS Version
docker: Linux c30f7a57fb60 5.4.0-139-generic #156-Ubuntu SMP Fri Jan 20 17:27:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Problem Description
When doing a prefix search over a text field with index_prefixes and min_chars = X , if the length of the prefix is X-1, the search fails with a lucene null pointer error:
this error has been reported (and solved) for openserarch, here opensearch-project/OpenSearch#2826
Steps to Reproduce
1 crate an index with index prefix and index some docs:
Do the search , the first and second work correctly while the last one, with a prefix of min_chars-1 fails
simple_query_string also fails
The regexp is the only option to do the search, but i could not find information on the documentation if regexp queries take advantage of the index_prefix
Output
the error produced is the next
The text was updated successfully, but these errors were encountered: