2013-08-29 07:24:34 +08:00
|
|
|
[[mapping-id-field]]
|
|
|
|
=== `_id`
|
|
|
|
|
|
|
|
Each document indexed is associated with an id and a type. The `_id`
|
2015-05-01 06:01:35 +08:00
|
|
|
field allows accessing only the id of a document.
|
2013-08-29 07:24:34 +08:00
|
|
|
|
|
|
|
Note, even though the `_id` is not indexed, all the APIs still work
|
|
|
|
(since they work with the `_uid` field), as well as fetching by ids
|
|
|
|
using `term`, `terms` or `prefix` queries/filters (including the
|
|
|
|
specific `ids` query/filter).
|
|
|
|
|