miku / esbulk

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

support OpType #26

Closed gransy closed 3 years ago

gransy commented 5 years ago

Hi,

please add support for Operation type: create / index - now you have fixed index (indexing.go:99).

With index - the data under same _id was replaced by new data With create - the doc will not create if exists under same _id

(https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)

Its perfect if you dont want duplicity and also dont want replace current data in ES.

Jan

miku commented 5 years ago

Thanks for the input.

Its perfect if you dont want duplicity and also dont want replace current data in ES.

Sounds good.

Note to self: indexing.go#L98

miku commented 3 years ago

Done, via #38.