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

[BUG] case_insensitive not working on wildcard queries #5461

Closed
nknize opened this issue Dec 6, 2022 · 0 comments · Fixed by #5462
Closed

[BUG] case_insensitive not working on wildcard queries #5461

nknize opened this issue Dec 6, 2022 · 0 comments · Fixed by #5462
Labels
bug Something isn't working Search Search query, autocomplete ...etc

Comments

@nknize
Copy link
Collaborator

nknize commented Dec 6, 2022

Describe the bug
the case_insensitive parameter for wildcard query does not work.

To Reproduce
Steps to reproduce the behavior:

create index:

PUT /index/_mapping 
{
  "properties" : {
    "field": {
      "type": "text"
    }
  }
}

post a document:
POST index/_doc/ {"field" : "lowercase text"}

query with wildcard case sensitivity:

GET index/_search
{
  "query" : {
    "wildcard": {
      "field": {
        "value": "Text",
        "case_insensitive": false
      } 
    }
}

Expected behavior
No hits should be returned in the above example, but because the standard analyzer is used wildcard query always normalizes the wildcard pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search Search query, autocomplete ...etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant