This commit adds documentation for new index privilege create_doc which only allows indexing of new documents but no updates to existing documents via Index or Bulk APIs. Relates: #45806
This commit is contained in:
parent
75a7daae73
commit
1139cce9a3
|
@ -153,8 +153,21 @@ action.
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
NOTE: This privilege does not restrict the index operation to the creation
|
NOTE: This privilege does not restrict the index operation to the creation
|
||||||
of documents but instead restricts API use to the index API. The index API allows a user
|
of documents but instead restricts API use to the index API. The index API
|
||||||
to overwrite a previously indexed document.
|
allows a user to overwrite a previously indexed document. See the `create_doc`
|
||||||
|
privilege for an alternative.
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
`create_doc`::
|
||||||
|
Privilege to index documents. Also grants access to the update mapping action.
|
||||||
|
However, it does not enable a user to update existing documents.
|
||||||
|
+
|
||||||
|
--
|
||||||
|
NOTE: When indexing documents with an external `_id` either via the index API or
|
||||||
|
the bulk API, the request must use `op_type` as `create`. If `_id`s are
|
||||||
|
generated automatically, the authorization happens as if the `op_type` is set to
|
||||||
|
`create`.
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue