Mapping ndjson

Good day
How can I import .ndjson file by a command without GUI

Hi @111228

You can accomplish that using the ES Bulk API:

curl -X PUT "localhost:9200/sample_data/_bulk?pretty" -H 'Content-Type: application/x-ndjson' --data-binary @sample.json

see this post for reference:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.