2013-08-28 19:24:34 -04:00
|
|
|
[[mapping-id-field]]
|
|
|
|
=== `_id`
|
|
|
|
|
|
|
|
Each document indexed is associated with an id and a type. The `_id`
|
2015-04-30 18:01:35 -04:00
|
|
|
field allows accessing only the id of a document.
|
2013-08-28 19:24:34 -04: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).
|
|
|
|
|