# How to do case-insensitive search for a field value?

**URL:** <https://discuss.elastic.co/t/how-to-do-case-insensitive-search-for-a-field-value/120002>\
**Category:** Kibana\
**Created:** [February 15, 2018, 2:19pm UTC](https://discuss.elastic.co/t/how-to-do-case-insensitive-search-for-a-field-value/120002 "2018-02-15T14:19:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [February 16, 2018, 2:18pm UTC](https://discuss.elastic.co/t/how-to-do-case-insensitive-search-for-a-field-value/120002/8 "2018-02-16T14:18:11Z")

</div>

The hostname field is mapped as type keyword. makeLogs maps the host field as text, which does support case insensitive searching by default. So you can remap the field as type text and reindex, or you can try the suggestion in the linked blog article in this discussion:

> [@How to search keyword fields with case insensitive](https://discuss.elastic.co/t/how-to-search-keyword-fields-with-case-insensitive/101704):
>
> Please provide me solution for case insensitive search on keyword field. Like if I am searching for ajit it should display AJIT and all ajit available in elasticsearch data. Currently it giving me exact match.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-do-case-insensitive-search-for-a-field-value/120002)._
