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

search with keyword and case insensitivity #1496

Closed
abhic91 opened this issue May 27, 2021 · 2 comments
Closed

search with keyword and case insensitivity #1496

abhic91 opened this issue May 27, 2021 · 2 comments
Milestone

Comments

@abhic91
Copy link

@abhic91 abhic91 commented May 27, 2021

Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

Version: Elastic 7.10.0

[x] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)

Please describe the expected behavior

Search with keyword and case insensitivity

GET elastic_org/_search
{
  "query": {
    "term": {
      "registeredName.keyword": { //term query with keyword
        "value": "prop org",
        "case_insensitive": true // and with case insensitivity
      }
    }
  }
}

I cannot find in any examples and _test.go files how to do this

@olivere olivere added this to the 7.0.25 milestone Jun 16, 2021
@olivere olivere closed this in fb742c1 Jun 16, 2021
@abhic91
Copy link
Author

@abhic91 abhic91 commented Jun 16, 2021

@olivere thanks, what about keyword?

Loading

@olivere
Copy link
Owner

@olivere olivere commented Jun 16, 2021

TermQuery is covered. What do you mean with keyword?

Loading

dungnx pushed a commit to dungnx/elastic that referenced this issue Sep 16, 2021
Elasticsearch 7.10 added a case-sensitivity option to most term-level
queries.

Close olivere#1496
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants