_exists_ doesn't seems work in 6.5.4

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

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

1 Like

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