Elasticsearch 9 · Documents

Load many documents

Index many documents from a newline-delimited JSON file. Each action line is followed by its document, and the file ends with a newline.

curl -u elastic:$ELASTIC_PASSWORD --cacert http_ca.crt -X POST "https://localhost:9200/_bulk" -H "Content-Type: application/x-ndjson" --data-binary @data.ndjson

Official Elasticsearch 9 documentation

More documents commands

All documents commands · Elasticsearch 9 cheatsheet

Was this page helpful?