diff --git a/plugins/permissions/dao_es6.go b/plugins/permissions/dao_es6.go index fb63ab61..d7d7427c 100644 --- a/plugins/permissions/dao_es6.go +++ b/plugins/permissions/dao_es6.go @@ -44,7 +44,7 @@ func (es *elasticsearch) getRawOwnerPermissionsEs6(ctx context.Context, owner st resp, err := util.GetClient6().Search(). Index(es.indexName). Query(es6.NewTermQuery("owner.keyword", owner)). - Size(100). + Size(1000). Do(ctx) if err != nil { return nil, err diff --git a/plugins/permissions/dao_es7.go b/plugins/permissions/dao_es7.go index 4a471b41..321271e2 100644 --- a/plugins/permissions/dao_es7.go +++ b/plugins/permissions/dao_es7.go @@ -44,7 +44,7 @@ func (es *elasticsearch) getRawOwnerPermissionsEs7(ctx context.Context, owner st resp, err := util.GetClient7().Search(). Index(es.indexName). Query(es7.NewTermQuery("owner.keyword", owner)). - Size(100). + Size(1000). Do(ctx) if err != nil { return nil, err diff --git a/plugins/users/dao_es6.go b/plugins/users/dao_es6.go index da6c938c..6bb47029 100644 --- a/plugins/users/dao_es6.go +++ b/plugins/users/dao_es6.go @@ -10,6 +10,7 @@ import ( func (es *elasticsearch) getRawUsersEs6(ctx context.Context) ([]byte, error) { response, err := util.GetClient6().Search(). Index(es.indexName). + Size(1000). Do(ctx) if err != nil { diff --git a/plugins/users/dao_es7.go b/plugins/users/dao_es7.go index 4fe5c02e..34726966 100644 --- a/plugins/users/dao_es7.go +++ b/plugins/users/dao_es7.go @@ -10,6 +10,7 @@ import ( func (es *elasticsearch) getRawUsersEs7(ctx context.Context) ([]byte, error) { response, err := util.GetClient7().Search(). Index(es.indexName). + Size(1000). Do(ctx) if err != nil {