WARNING: Version 5.1 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
The value of the
_id field is accessible in certain queries (
not in aggregations, scripts or when sorting, where the
field should be used instead:
Querying on the