Update id-field.asciidoc
Clarified which queries support the `_id` field
This commit is contained in:
parent
b8b5dc1cba
commit
84a2b4e17e
|
@ -6,9 +6,10 @@ Each document indexed is associated with a <<mapping-type-field,`_type`>> (see
|
|||
indexed as its value can be derived automatically from the
|
||||
<<mapping-uid-field,`_uid`>> field.
|
||||
|
||||
The value of the `_id` field is accessible in queries and scripts, but _not_
|
||||
in aggregations or when sorting, where the <<mapping-uid-field,`_uid`>> field
|
||||
should be used instead:
|
||||
The value of the `_id` field is accessible in certain queries (`term`,
|
||||
`terms`, `match`, `query_string`, `simple_query_string`) and scripts, but
|
||||
_not_ in aggregations or when sorting, where the <<mapping-uid-field,`_uid`>>
|
||||
field should be used instead:
|
||||
|
||||
[source,js]
|
||||
--------------------------
|
||||
|
|
Loading…
Reference in New Issue