Command line tool for simple fixture loading


(Antonio) #1

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!


Inserta
(Lee Hinman) #2

:heart: the Jojo's reference :smiley:


(Antonio) #3

I'm glad someone realized :stuck_out_tongue:


(system) #4

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