Hey guys, I need some help,
I am trying to index some documents into the cloud enterprise search using bulk api but i keep getting a routing error. Here's the script i wrote:
for FILE in *.json
do
curl -XPOST '<https-endpoint>/api/as/v1/engines/myengine/documents/_bulk' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer private-XXXXXXXXXXXXXXXXX' \
\--data-binary "@${FILE}"
done
But i get this error:
{"errors":"Routing Error. The path you have requested is invalid."}
What should I change in the path so it can work ?
Thanks!