[DOCS] Add docs for `create_doc` index privilege (#47584) (#47778)

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:
Yogesh Gaikwad 2019-10-09 21:22:36 +11:00 committed by GitHub
parent 75a7daae73
commit 1139cce9a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -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`.
-- --