Browse Source

Fix the documentation to state that the `_id` field is indexed. (#25540)

Adrien Grand 8 years ago
parent
commit
26de905f1e
1 changed files with 7 additions and 4 deletions
  1. 7 4
      docs/reference/mapping/fields/id-field.asciidoc

+ 7 - 4
docs/reference/mapping/fields/id-field.asciidoc

@@ -1,10 +1,13 @@
 [[mapping-id-field]]
 === `_id` field
 
-Each document indexed is associated with a <<mapping-type-field,`_type`>> (see
-<<mapping-type>>) and an <<mapping-id-field,`_id`>>.  The `_id` field is not
-indexed as its value can be derived automatically from the
-<<mapping-uid-field,`_uid`>> field.
+Each document has an `_id` that uniquely identifies it, which is indexed
+so that documents can be looked up either with the <<docs-get,GET API>> or the
+<<query-dsl-ids-query,`ids` query>>.
+
+NOTE: This was not the case with pre-6.0 indices due to the fact that they
+supported multiple types, so the `_type` and `_id` were merged into a composite
+primary key called `_uid`.
 
 The value of the `_id` field is accessible in certain queries (`term`,
 `terms`, `match`, `query_string`, `simple_query_string`).