# \_exists\_ doesn't seems work in 6.5.4

**URL:** <https://discuss.elastic.co/t/exists-doesnt-seems-work-in-6-5-4/168954>\
**Category:** Kibana\
**Created:** [February 19, 2019, 7:30am UTC](https://discuss.elastic.co/t/exists-doesnt-seems-work-in-6-5-4/168954 "2019-02-19T07:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [February 19, 2019, 7:30am UTC](https://discuss.elastic.co/t/exists-doesnt-seems-work-in-6-5-4/168954/1 "2019-02-19T07:30:45Z")

</div>

The query **_exists_:fieldname** doesn't work in Kibana, when querying via search bar, but works with filter UI ("Add a filter" button).

The query created in the first case:  
...  
"filter":[{  
"bool":{  
"should":[{"match":{"_exists_":"pagetype"}}]  
}}]  
...

The query generated for the second case:  
...  
"exists":{"field":"pagetype"}  
...

P.S. This editor removes underscore character before and after the **exists** , so know it's there

---

<div class="post-metadata">

**Author:** ![raya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raya/32/55497_2.png) [@raya](https://discuss.elastic.co/u/raya)\
**Post date:** [February 20, 2019, 3:22am UTC](https://discuss.elastic.co/t/exists-doesnt-seems-work-in-6-5-4/168954/2 "2019-02-20T03:22:42Z")

</div>

This appears to be a bug. Thank you for reporting!  
I created [https://github.com/elastic/kibana/issues/31554](https://github.com/elastic/kibana/issues/31554)

---

<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:** [March 20, 2019, 3:22am UTC](https://discuss.elastic.co/t/exists-doesnt-seems-work-in-6-5-4/168954/3 "2019-03-20T03:22:44Z")

</div>

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