I'm trying to query elasticsearch to return all the index data between say july 3 and july 4.
I issued the query and it returned a total hits of 14003. I know the default value it returns is 10, and i can set the default settings up to 10000 being returned.
But If the total hits is 14003 and the max return value is only 10000, how could i get the remaining 4003 values.
I tried using the from/size: so i tried "from" : 10001 , "size" : 14003
but got the error stating that the size was too big.
Thanks, i tried the scroll and i can't get it to return all of it as well. i can't get it to return a large number of results or even the all the results as mentioned in the document. I get pages of it. I want everything in one shot. Maybe i don't have the correct syntax
It is inefficient to just set the size to something huge. 905 isn't huge.
For that many docs you don't need to scroll. If you had tens of thousands
you'd need to scroll. You still set size to 1000 or 5000 or something, but
you have to deal with the pages of results.
Elasticsearch doesn't support streaming the results back which is the only
way you'd be able to request and get them all back in one response.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.