Open marciomansur opened 9 years ago
public static function searchByQuery($query = null, $aggregations = null, $sourceFields = null, $limit = null, $offset = null, $sort = null)
so
searchByQuery($query, null, null, 666);
@therpr I can't understand, in the method it has limit
default null
, but default limit is 10 records
@skrivitsky https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
size defaults to 10
it's a feature in elasticsearch itself
Hello,
When I use this function, the search returns only 10 records of a collection. After some hours of studying, I've read that is something to do with 'from' and 'size', it's something to do with pagination.
How can I get all records or rize the number of records (size) using elasticquent?