I am in a real pain with Elastic App Search, the indexing limit for bulk index is 100 according to the docs: https://www.elastic.co/guide/en/app-search/current/limits.html
I was trying to create all the promises and then do promise.all(allPromises)
, but it's failing to index everything, and the response of when this fails still return 200, and you have to loop over:
res.data
(all the 100 documents array), and look if they have error
field.
Is there any solution to index lot of document fast? Because indexing 1 million with loop to await between every 100 batch size query is extremely slow.