Hi there,
I have a json file with an index mapping definition in it. What is the best way to import it into elasticsearch? I would like to do it via curl / CLI.
Cheers!
Hi there,
I have a json file with an index mapping definition in it. What is the best way to import it into elasticsearch? I would like to do it via curl / CLI.
Cheers!
Just point curl to the file and give the template a name:
curl -XPUT 'http://localhost:9200/_template/my_index_templ' -H 'Content-Type: application/json' -d @your_file.json
Good luck!
Thank you!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.