|
@@ -290,6 +290,9 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
|
|
|
if len(multiIndex) == 2 {
|
|
|
elastic.BulkSave(multiIndex[0], multiIndex[1], &tmps, true)
|
|
|
}
|
|
|
+ if other_index != "" && other_itype != "" { //备份库同时生索引
|
|
|
+ bidding_other_es.BulkSave(other_index, other_itype, &tmps, true)
|
|
|
+ }
|
|
|
arrEs = []map[string]interface{}{}
|
|
|
}
|
|
|
UpdatesLock.Unlock()
|
|
@@ -313,6 +316,9 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
|
|
|
if len(multiIndex) == 2 {
|
|
|
elastic.BulkSave(multiIndex[0], multiIndex[1], &tmps, true)
|
|
|
}
|
|
|
+ if other_index != "" && other_itype != "" { //备份库同时生索引
|
|
|
+ bidding_other_es.BulkSave(other_index, other_itype, &tmps, true)
|
|
|
+ }
|
|
|
}
|
|
|
UpdatesLock.Unlock()
|
|
|
log.Println(mapInfo, "create bidding index...over", n)
|