# How to make a match to the comma in the search bar of kibana6.5.4?

**URL:** <https://discuss.elastic.co/t/how-to-make-a-match-to-the-comma-in-the-search-bar-of-kibana6-5-4/171653>\
**Category:** Kibana\
**Created:** [March 11, 2019, 2:17am UTC](https://discuss.elastic.co/t/how-to-make-a-match-to-the-comma-in-the-search-bar-of-kibana6-5-4/171653 "2019-03-11T02:17:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jiangby/32/49069_2.png) [@jiangby](https://discuss.elastic.co/u/jiangby)\
**Post date:** [March 11, 2019, 2:17am UTC](https://discuss.elastic.co/t/how-to-make-a-match-to-the-comma-in-the-search-bar-of-kibana6-5-4/171653/1 "2019-03-11T02:17:28Z")

</div>

![21](https://us1.discourse-cdn.com/elastic/original/3X/8/3/8372ed72824cb2ce2bbd792893d996080a7ad157.png)  
My log text contains a comma, how do I match him when I search?  
I tried to use “\”, it seems to be useless.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [March 11, 2019, 8:54pm UTC](https://discuss.elastic.co/t/how-to-make-a-match-to-the-comma-in-the-search-bar-of-kibana6-5-4/171653/2 "2019-03-11T20:54:14Z")

</div>

This might be due to the mapping on the field you are trying to search. If the field you are searching on is analyzed, it means the search input will also be analyzed, which generally means the words are all stemmed, some input is discarded (like punctuation and stop words), and then the search is executed.

If you are trying to match an exact string, you'll want to do so on a field that is mapped as a keyword instead of one that is mapped as text. This is often done with _multi-fields_, where you index the value multiple ways and access the different values through multiple field pointers. For example, you may store the text/analyzed version on `name`, and the keyword/non-analyzed version on `name.keyword`. That way you can do the exact match on `name.keyword`.

You can read a but more about multi-fields here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html)

---

<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:** [April 8, 2019, 8:54pm UTC](https://discuss.elastic.co/t/how-to-make-a-match-to-the-comma-in-the-search-bar-of-kibana6-5-4/171653/3 "2019-04-08T20:54:22Z")

</div>

Closed on April 8, 2019, 8:54pm UTC

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