New

The executive guide to generative AI

Read more

Exists Filter

edit

Filters documents where a specific field has a value in them.

{
    "constant_score" : {
        "filter" : {
            "exists" : { "field" : "user" }
        }
    }
}

Caching

edit

The result of the filter is always cached.

On this page

Was this helpful?
Feedback