Skip to content

Commit e67035c

Browse files
committed
Fix the documentation to state that the _id field is indexed.
1 parent 0170e0e commit e67035c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/reference/mapping/fields/id-field.asciidoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
[[mapping-id-field]]
22
=== `_id` field
33

4-
Each document indexed is associated with a <<mapping-type-field,`_type`>> (see
5-
<<mapping-type>>) and an <<mapping-id-field,`_id`>>. The `_id` field is not
6-
indexed as its value can be derived automatically from the
7-
<<mapping-uid-field,`_uid`>> field.
4+
Each document has an `_id` that uniquely identifies it, which is indexed
5+
so that documents can be looked up either with the <<docs-get,GET API>> or the
6+
<<query-dsl-ids-query,`ids` query>>.
7+
8+
NOTE: This was not the case with pre-6.0 indices due to the fact that they
9+
supported multiple types, so the `_type` and `_id` were merged into a composite
10+
primary key called `_uid`.
811

912
The value of the `_id` field is accessible in certain queries (`term`,
1013
`terms`, `match`, `query_string`, `simple_query_string`).

0 commit comments

Comments
 (0)