-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Wildcard search with special characters: Differences between ES 2.x and 5.x #22989
Comments
Good catch, the behaviour did indeed change as we are now only applying the character-level filters of the analysis chain (like ascii folding or lowercasing), which means we ignore the tokenizer and some filters like synonyms or stemming filters. For most users this should be transparent and might even fix queries that did not work before. However in that case, this causes the punctuation characters to remain in I am unclear how |
@jpountz thanks for your reply and confirmation :) I'd also vote for documenting this just as a breaking change. Am I correct in the assumption the new but experimental |
Actually the |
I think the situation is not ideal because the punctuation is removed by the tokenizer even though it could be considered as a |
We agreed in FixitFriday on documenting this behaviour and potentially adapt based on feedback when we get some. |
cc @elastic/es-search-aggs Still need to document better the details of working of |
Hello all ! I'm currently using ElasticSearch v6.2.3, and I encountered similar problem. I got this mapping on my index:
When running the following query, it does match
But with this other query, ES doesn't match any result (notice the * around the query):
Can anyone help me ? Is there a workaround to make this work ? |
Closing as duplicate of #25940 |
I'm in the process of upgrading a project from ES 1.7 to ES 5.1 and noticed an integration test failing. After testing I made sure that the actual change happens between 2.x and 5.x.
Below is a minimal repro case.
When searching using a wildcard search for "brö" I get in both versions the same result. When searching using "brö{"/)?" which gets escaped as "brö{\\"/)", I get 2 results in ES 2.x and no results in ES 5.x.
I searched breaking changes of ES 2.x and ES 5.x but could not find anything related to that. Also searched for new query string search settings which could help in that regard but couldn't find it either.
Also I opened first a forum post with the same details: https://discuss.elastic.co/t/wildcard-search-with-special-characters-differences-between-es-1-7-and-es-5-1/73720/1
How to reproduce
ES 5 index creation
ES 2.x index creation
Insert data
works in both ES 2.x and ES 5.1:
doesn't work in ES 5.1 but works in ES 2.x:
The text was updated successfully, but these errors were encountered: