October 2019
Beginner
186 pages
5h 39m
English
Multi-document APIs are handled in a similar way to single-document APIs. Updating and deleting multi-documents uses the same parameters.
The multi-document API retrieves multiple documents using an index, type, or ID. Using _mget specifies the documents to be selected:
GET /test_index/_doc/_mget{ "ids" : ["1", "2"]}
After executing the preceding command, we can list the documents with the IDs of 1 and 2.
The update by query API updates the documents in the index. The source is not changed:
POST node_name/_update_by_query
This takes a snapshot of the index as it starts, and will keep track of the changes to the document. It will return a conflict response if the document changes between the snapshot and the process of ...
Read now
Unlock full access