How to use case_insensitive option in DSL Terms Query

In elastic we have Term and Terms level query .Term will be used for matching the field with exact value whereas Terms query is an equivalent to SQL IN Clause operation and tried to implement like:

Term Query:

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

Terms Query:

{
    "query": {
        "terms": {
            "title":["big bang","big theory"]
        }
    }
}

in which case_insensitive is supported in Term Query.meanwhile i couldnt have any idea of how to use case_insensitive option in Terms Query.Any options to use it in Terms Query.

Thanks in Advance.

The terms query does not currently support the case insensitive query option.
To have case insensitive terms matching you would need to index with a normalizer.

1 Like

Any idea of supporting case insensitive option in Terms query in future??

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.