Closed RoRui closed 1 year ago
@rory5515 you cannot use your solution since we need to create an array of operations in the body
field. Each operations has two rows, the first is the operation type (e.g. index
) and the second is the document data. If you see the HTTP Bulk API specification here, you can see why we needed to do that.
Let me know if you need more help, thanks.
I think that is confusint to the structure of arrays
That's what the official document says: Bulk indexing with PHP arrays.
The above array structure is confusing, so why not do it: