Command line tool for simple fixture loading

Hi,

I want to share this tool that allows to clear and load fixtures easily in Elasticsearch, besides other index management.

Also can be used as a required module in your code (Node.js).

For example, with this .json file:

[{
  "name": "Dio",
  "standName": "The World",
  "age": 122
},{
  "name": "Jotaro",
  "standName": "Star Platinum",
  "age": 17
}]

The above documents can be indexed out-of-the-box with this command:

$ esfix load my_index my_type fixtures.json

Deleting the data is as simple as this:

$ esfix clear my_index my_type

For more details:

Any feedback or use cases are appreciated!

1 Like

:heart: the Jojo's reference :smiley:

1 Like

I'm glad someone realized :stuck_out_tongue:

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