question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couln'nt find case_insensitive option in High Level Client Term Query(NEST)

See original GitHub issue

Hi, I am using ElasticSearch version 7.11. My TermQuery only returns case-sensitive matching results,to avoid that I set case_insensitive as true in DSL term query like below and it returns data as expected.

{
    "query": {
        "term": {
            "title": {
                "value": "BIG THEORY",
                "case_insensitive": true
            }
        }
    }
}

But when I am trying to implement in code using High Level Client [Nest], could’nt find the option to set case_insensitive as true.

   var searchResults = eClient.Search<Dictionary<string, object>>(s => s
                                 .Index("wss")
                                 .Query(q =>
                                    q.Term(t => t.Field("title").Value("BIG THEORY"))
                                )).Documents.ToList();

In above code how should I set the case_insensitive option as true in Term Query.

Thanks in Advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Sangeetha-Murugesancommented, Mar 16, 2021

@stevejgordon Thanks !!

1reaction
stevejgordoncommented, Mar 16, 2021

@Sangeetha-Murugesan Yes, absolutely! I’m working on it as we speak, but it won’t be available until the next release so I wanted to give you a workaround until we have a date for 7.12.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could'nt set case_insensitive option in Nest - Elasticsearch
Hi, I am using ElasticSearch version 7.11. My TermQuery only returns case-sensitive matching results,to avoid that I set case_insensitive as ...
Read more >
How to make a Nest Elasticsearch case insensitive
I'm using the Nest.ElasticSearch library for .Net. And i have a model that i use for the index, which has a field i...
Read more >
Support case insensitive search on new wildcard field and ...
Currently the wildcard field only supports case sensitive search but it is vital that we find a way to offer case insensitive search...
Read more >
Users expect a way to be more precise (exact ...
I believe our Elasticsearch code search is always case insensitive. Is it possible you are you using basic search (which will happen if ......
Read more >
Google Sheets Query function: Learn the most powerful ...
Learn how to use the super-powerful Google Sheets Query function to analyze ... The keywords are not case sensitive, so you can write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found