forked from hoffoo/elasticsearch-dump
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sync function for incremental update (#84)
* fishjam#1 add go.mod and fix build error(infini.sh/framework, fasthttp, util) * run following command to format code: gofmt -l -w . * fishjam#1 1.add Config: SortField, TruncateOutFile, SkipFields, so can dump es index to local file and compare. 2.add Config function: Sync , so can scroll and compare the source and dest index records, and just index/update/delete the changed records 3.refactor code: - 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. - delete some commented and useless code * fix error while source index not exist and change log. * change model name * change log * update README.md and change the description of some configurations
- Loading branch information
Showing
18 changed files
with
1,359 additions
and
1,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.