ElasticSearch: why is query_string case insensitive and wildcard case sensitive? ElasticSearch: why is query_string case insensitive and wildcard case sensitive? elasticsearch elasticsearch

ElasticSearch: why is query_string case insensitive and wildcard case sensitive?


This is because Wild card query works for not analyzed fields.

As per the documentation:

The prefix, wildcard, and regexp queries operate on terms. If you use them to query an analyzed field, they will examine each term in the field, not the field as a whole.

Wild card query matches documents that have fields matching a wildcard expression (not analyzed).