# Case insensitive path in match query

**URL:** <https://discuss.elastic.co/t/case-insensitive-path-in-match-query/229192>\
**Category:** Elasticsearch\
**Created:** [April 22, 2020, 6:55am UTC](https://discuss.elastic.co/t/case-insensitive-path-in-match-query/229192 "2020-04-22T06:55:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jogi\_Michal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogi_michal/32/45613_2.png) [@Jogi\_Michal](https://discuss.elastic.co/u/Jogi_Michal)\
**Post date:** [April 22, 2020, 6:55am UTC](https://discuss.elastic.co/t/case-insensitive-path-in-match-query/229192/1 "2020-04-22T06:55:05Z")

</div>

Hi folks,

I have a problem with case sensitivity in field path...

My mapping is dynamic:

```
 ...
 "http_headers": {
   "dynamic": true,
   "properties": {
     "content-length": {
       "type": "long"
     }
   },
   ...

```

so I have in there documents with fields with different cases:

```
[...].http_headers.User-Agent
[...].http_headers.User-agent
[...].http_headers.user-agent

```

My question is if there is a way of searching (match query) by the lowercase one and get results for all of them? Is there a possibility to search by case insensitive field path?

Thanks in advance,  
Cheers

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 20, 2020, 7:04am UTC](https://discuss.elastic.co/t/case-insensitive-path-in-match-query/229192/2 "2020-05-20T07:04:02Z")

</div>

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