Exists Filter

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

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

Caching

The result of the filter is always cached.

Table Of Contents

Previous topic

Bool Filter

Next topic

Geo Bounding Box Filter

This Page