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

Error: failed to compare string that has uppercase letters as value of a field in search query with match. #33334

Closed
GobindaGobinda opened this issue Sep 1, 2018 · 3 comments

Comments

@GobindaGobinda
Copy link

GobindaGobinda commented Sep 1, 2018

Describe the feature:

Elasticsearch version (bin/elasticsearch --version): 5.5.0

Plugins installed: []

JVM version (java -version):

OS version (uname -a if on a Unix-like system): Ubunutu 16.0

Description of the problem including expected versus actual behavior:
I found that when we run the search query for string which has Uppercase and Lowercase characters, it failed to return the correct records. Anyone faced the problem.
So, changing the string to lowercase before search solved the problem for my system.
Can that be changed in the package, so that its easier for other users.
Spent a long time solve problem caused by this.

Steps to reproduce:
errorcorrection

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

Provide logs (if relevant):

@dnhatn
Copy link
Member

dnhatn commented Sep 2, 2018

You're using a term query which finds documents that contain the exact term specified in the inverted index.

I am closing this as we use Github for bug reports and feature requests. Please ask questions on https://discuss.elastic.co where we can give you a better support.

@dnhatn dnhatn closed this as completed Sep 2, 2018
@GobindaGobinda
Copy link
Author

The exact value that is stored in field is the word that starts with the uppercase "Gobinda".
whereas the search term only works with the lowercase not while putting the word with uppercase.

@dnhatn
Copy link
Member

dnhatn commented Sep 2, 2018

@GobindaGobinda Which analyzer do you use? Let's continue the discussion on https://discuss.elastic.co/ as we use Github for bug reports and feature requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants