This commit is contained in:
parent
8d85fcca10
commit
7f7005a762
2
es/es.go
2
es/es.go
|
@ -57,7 +57,7 @@ func (es *ElasticSearch) GetStreamerAcctList(ctx context.Context) (list []*dbstr
|
|||
|
||||
list = make([]*dbstruct.EsStreamerAcct, 0)
|
||||
|
||||
res, err := es.clientMix.Search(es.getIndexStreamerAcct()).Query(query).Do(ctx)
|
||||
res, err := es.clientMix.Search(es.getIndexStreamerAcct()).Query(query).From(0).Size(1000).Do(ctx)
|
||||
if err != nil {
|
||||
fmt.Printf("Search %v fail, err: %v", IndexStreamerAcct, err)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue