|
@@ -173,7 +173,7 @@ func searchData(index, esquery, sdataid string, i_maxnum int64, tags map[string]
|
|
esCon := elastic.VarEs.(*elastic.EsV7)
|
|
esCon := elastic.VarEs.(*elastic.EsV7)
|
|
client := esCon.GetEsConn()
|
|
client := esCon.GetEsConn()
|
|
defer esCon.DestoryEsConn(client)
|
|
defer esCon.DestoryEsConn(client)
|
|
- ctx, _ := context.WithTimeout(context.Background(), 60*time.Second)
|
|
|
|
|
|
+ ctx, _ := context.WithTimeout(context.Background(), 5*time.Minute)
|
|
cc := &MySource{
|
|
cc := &MySource{
|
|
Querys: esquery,
|
|
Querys: esquery,
|
|
}
|
|
}
|