Complete the code to specify the bulk API endpoint for indexing documents.
POST /[1]/_bulkThe bulk API requires the target index name in the URL path. Here, my_index is the correct index name placeholder.
Complete the bulk request action line to index a document with ID 1.
{"index": {"_id": [1]The document ID must be a string in quotes. Here, "1" is the correct format for the ID.
Fix the error in the bulk request body by completing the document source line correctly.
{"field1": [1]JSON strings must be enclosed in double quotes. Using "value1" is correct.
Fill both blanks to set the bulk request header and body for indexing two documents.
{"index": {"_index": [1]
{"field": "value1"}
{"index": {"_index": [2]
{"field": "value2"}Each bulk action must specify the target index. Here, the first document goes to "my_index" and the second to "other_index".
Fill all three blanks to create a bulk request that indexes documents with IDs and fields correctly.
{"index": {"_index": [1], "_id": [2]
{"name": [3]The bulk request header specifies the index "users" and document ID "42". The document source includes the field "name" with value "Alice".