is there any way to import a json file(contains 100 documents) in elasticsearch server.?

前端 未结 9 1738
孤街浪徒
孤街浪徒 2020-12-04 10:39

Is there any way to import a JSON file (contains 100 documents) in elasticsearch server? I want to import a big json file into es-server..

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 10:59

    You can use esbulk, a fast and simple bulk indexer:

    $ esbulk -index myindex file.ldj
    

    Here's an asciicast showing it loading Project Gutenberg data into Elasticsearch in about 11s.

    Disclaimer: I'm the author.

提交回复
热议问题