|
@@ -75,7 +75,7 @@ func (l *Lua) SearchData() {
|
|
for _, l := range *list_bid {
|
|
for _, l := range *list_bid {
|
|
id := mongodb.BsonIdToSId(l["_id"])
|
|
id := mongodb.BsonIdToSId(l["_id"])
|
|
es_query := `{"query":{"bool":{"must":[{"term":{"id":"` + id + `"}}]}}}`
|
|
es_query := `{"query":{"bool":{"must":[{"term":{"id":"` + id + `"}}]}}}`
|
|
- if elastic.Count(util.EsIndex, util.EsType, es_query) > 0 {
|
|
|
|
|
|
+ if util.JyEs.Count(util.EsIndex, util.EsType, es_query) > 0 {
|
|
l["es"] = "已生成"
|
|
l["es"] = "已生成"
|
|
} else {
|
|
} else {
|
|
extracttype := qu.IntAll(l["extracttype"])
|
|
extracttype := qu.IntAll(l["extracttype"])
|