Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into TraceLogsMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Pure-AdamuKaapan authored Jan 26, 2021
2 parents e3d3703 + 332ecb3 commit 6a9ad8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/clients/elastic/arrays.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func (c *Client) FindArrays(query *resources.ArrayQuery) ([]*resources.Array, er
searchService := c.esclient.Search(arraysIndexName).Type("_doc").Query(query.GenerateElasticQueryObject()).From(query.Offset).IgnoreUnavailable(true).AllowNoIndices(true)
if query.Limit > 0 {
searchService.Size(query.Limit)
} else {
// Default to 1000 results if not specified (should be bigger than any "practical" fleet size to ensure returning
// all results)
searchService.Size(1000)
}
if len(query.Sort) > 0 {
sortParam, err := query.GetSortParameter()
Expand Down

0 comments on commit 6a9ad8d

Please sign in to comment.