# Timelion query

**URL:** <https://discuss.elastic.co/t/timelion-query/107050>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [November 9, 2017, 1:53pm UTC](https://discuss.elastic.co/t/timelion-query/107050 "2017-11-09T13:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [November 10, 2017, 1:45pm UTC](https://discuss.elastic.co/t/timelion-query/107050/2 "2017-11-10T13:45:17Z")

</div>

Try using either quotes, or if you have a non-analyzed field with the same data, you can point to that. Elasticsearch might have created one for you automatically depending on how you set up your mappings, and what version you are using - you can check this out in the Index patterns page of management:

 ![28 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/f/eff10ed9d02d2fb27b9de533401ce5b42990fb9e.png)

the `.keyword` one above is the one that won't strip out special characters. So here are a few examples:

The query as you wrote it, returns too many matches:

 ![19 AM](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c13e5a31e11e36e4e7b8065bc6624e27207db352.png)

Adding quotes removes them:

 ![28 AM](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d7d19ad7446d4eb06051655914665cafcd26ef1a.png)

As does using the `.keyword` variation:

 ![37 AM](https://us1.discourse-cdn.com/elastic/original/3X/8/1/815bc63e5d1c669ff5a1e33afbcd525586daecb2.png)

Here is my data for reference in this example:  
 ![29 AM](https://us1.discourse-cdn.com/elastic/original/3X/b/7/b7cbaa3c63c3decef65cb7016471a733a4a199bd.png)

Hope that helps!

---

_[View the full topic](https://discuss.elastic.co/t/timelion-query/107050)._
