Hello, Can anybody tell me how can I scroll through a large index to get all the documents out ordered by time stamp?
my parameters to initial search are :
`[
'search_type' => 'scan',
'scroll' => '2m',
'size' => 100,
'index' => $index,
'body' => [
'query' => $query,
'sort' => [
'@ts' => [
'order' => 'asc'
]
]
]
];`
but the documents comes out in random order.