rgov
rgov

Reputation: 4329

Field exists (_exists_) query in Kibana does not return any results

This query works great from Kibana's Console:

GET /_search
{
    "query": {
        "query_string": {
            "query": "_exists_:my.field"
        }
    }
}

However if I search for _exists_:my.field in the Lucene search box on the Discover tab, I get no results.

Upvotes: 2

Views: 5814

Answers (1)

rgov
rgov

Reputation: 4329

Either:

  1. Disable the new search syntax and revert to Lucene syntax, where this query works. This is under the "Options" button at the far right of the search field.

  2. Use the new syntax, where the query is instead my.field:*.

Upvotes: 4

Related Questions