miku / esbulk

Bulk indexing command line tool for elasticsearch.
GNU General Public License v3.0
278 stars 41 forks source link

Allow mapping to be passed for index creation. #1

Closed miku closed 8 years ago

miku commented 8 years ago

If building an index from scratch, we could just pass a mapping definition file, e.g.

$ esbulk -mapping mymapping.json -index test -type default file.ldj

Related to this, a -purge flag could be added, to always delete an existing index before reapplying the mapping and indexing the file, e.g.

$ esbulk -purge -mapping mymapping.json -index test -type default file.ldj