Browse Source

Update id-field.asciidoc

Clarified which queries support the `_id` field
Clinton Gormley 9 years ago
parent
commit
84a2b4e17e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      docs/reference/mapping/fields/id-field.asciidoc

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

@@ -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]
 --------------------------