add some functions in esapi, ClusterVersion() and DeleteScroll(), add ParseEsApi
move bulk.go to migrator.go, and add some functions
refactor all http method(GET/Post/DoRequest) to sinle Request method, and support proxy. BTW: seems this change also fix some erro: example: in original version, try use --regenerate_id --repeat_times=10 to generate some test data, but it can not work(can not generate target index).
delete some commented and useless code
run following command to format code: gofmt -l -w .
TODO
now use single goroutine to scroll for src + dest index, and insert/update/delete records, need consider performance after more check
add range condition support( example: modifydate gt xxx ), so can do sync more effective
Requirements
force
to delete the dest index firstindex_total
count )Solutions
--sync
to scroll and compare the source and dest index records, and just index/update/delete the changed recordsImplementation
Other changes
--regenerate_id --repeat_times=10
to generate some test data, but it can not work(can not generate target index).gofmt -l -w .
TODO