feat: migration skip exists docs
This commit is contained in:
parent
597fa16369
commit
5b28c59853
|
@ -134,7 +134,7 @@ func (p *processor) handleSplitSubTask(taskItem *task.Task) error {
|
||||||
"batch_size": cfg.Source.BatchSize,
|
"batch_size": cfg.Source.BatchSize,
|
||||||
"indices": indexName,
|
"indices": indexName,
|
||||||
"elasticsearch": sourceClusterID,
|
"elasticsearch": sourceClusterID,
|
||||||
"skip_exist_documents": cfg.Target.Bulk.SkipExistDocuments,
|
"bulk_create_operation": cfg.Target.Bulk.CreateOperation,
|
||||||
"queue": util.MapStr{
|
"queue": util.MapStr{
|
||||||
"name": scrollID,
|
"name": scrollID,
|
||||||
"labels": util.MapStr{
|
"labels": util.MapStr{
|
||||||
|
@ -191,7 +191,7 @@ func (p *processor) handleSplitSubTask(taskItem *task.Task) error {
|
||||||
"batch_size_in_docs": cfg.Target.Bulk.BatchSizeInDocs,
|
"batch_size_in_docs": cfg.Target.Bulk.BatchSizeInDocs,
|
||||||
"invalid_queue": "bulk_indexing_400",
|
"invalid_queue": "bulk_indexing_400",
|
||||||
"compress": cfg.Target.Bulk.Compress,
|
"compress": cfg.Target.Bulk.Compress,
|
||||||
"skip_exist_documents": cfg.Target.Bulk.SkipExistDocuments,
|
"bulk_create_operation": cfg.Target.Bulk.CreateOperation,
|
||||||
},
|
},
|
||||||
"max_worker_size": cfg.Target.Bulk.MaxWorkerSize,
|
"max_worker_size": cfg.Target.Bulk.MaxWorkerSize,
|
||||||
"num_of_slices": cfg.Target.Bulk.SliceSize,
|
"num_of_slices": cfg.Target.Bulk.SliceSize,
|
||||||
|
|
|
@ -92,7 +92,7 @@ type IndexMigrationBulkConfig struct {
|
||||||
IdleTimeoutInSeconds int `json:"idle_timeout_in_seconds"`
|
IdleTimeoutInSeconds int `json:"idle_timeout_in_seconds"`
|
||||||
SliceSize int `json:"slice_size"`
|
SliceSize int `json:"slice_size"`
|
||||||
Compress bool `json:"compress"`
|
Compress bool `json:"compress"`
|
||||||
SkipExistDocuments bool `json:"skip_exist_documents"`
|
CreateOperation bool `json:"bulk_create_operation"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type IndexMigrationTargetConfig struct {
|
type IndexMigrationTargetConfig struct {
|
||||||
|
|
Loading…
Reference in New Issue