New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Type Query

edit

Deprecated in 7.0.0.

Types and the type query are deprecated and in the process of being removed. See Removal of mapping types.

Filters documents matching the provided document / mapping type.

GET /_search
{
    "query": {
        "type" : {
            "value" : "_doc"
        }
    }
}
Was this helpful?
Feedback