-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
support case_insensitive in terms query #71520
Comments
Hi @zhuming, I'm relabeling this as an enhancement request because I believe this parameter hasn't been supported for this type of query so far. We might decide to add it but I don't see that we did this in any previously released version. Please let me know if I'm mistaken on this. |
Pinging @elastic/es-search (Team:Search) |
For anyone interested: This was planned in #61162, and the last comment before issue closed already stated |
A workaround is using using a text field with
both as index and search analyzer. Performance and storage is blackbox here (for me, not the devs ofc ). |
Relates to #82825 |
We discussed this with the team and summarized the reasons why the functionality is not currently supported: Also, we would like to hear more about real usecases that would require terms to be case insensitive. Very often ids are looked up and they don't require analysis. We would be happy to enable this feature once |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Elasticsearch version (
bin/elasticsearch --version
):7.10.2
Plugins installed: []
none
JVM version (
java -version
):any
OS version (
uname -a
if on a Unix-like system):any
Description of the problem including expected versus actual behavior:
Trying add case_insensitive:true to a terms query,
and it failed with the below error info
case_insensitive works for term/query/wildcard, but not for terms
Steps to reproduce:
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):
The text was updated successfully, but these errors were encountered: