You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elasticsearch has a default size of 10, There is no way to perform an unlimited search, one form is to get the count and use the from: 0 to: count but for large collections E.S can trow overflow error.
One solution is to use the scan method which gets all documents paginated, so .all() would be a paginated by default function.
Set size = 'count' put a infection into code, since it breaks for large
collections. I think all() should use scan. But this solution add a new
constraint on es parameter (it must implement scan).
On Mon, Mar 21, 2016 at 10:58 AM, Bruno Rocha [email protected]
wrote:
Elasticsearch has a default size of 10, There is no way to perform an
unlimited search, one form is to get the count and use the from: 0 to:
count but for large collections E.S can trow overflow error.
One solution is to use the scan method which gets all documents
paginated, so .all() would be a paginated by default function.
The function all() returns 10 documents by default. Should it return all documents?
The text was updated successfully, but these errors were encountered: