can you maybe explain what did not work as expected with using from/size even without terminate after? What did not work as expected, and what did you expect?
Using from/size feature allows me to divid results into small parts (30 documents in my case) but I'm not able, in the same time, to limit the whole query to a number (ie : 500).
My query looks like this :
What do you think you gain when limiting the query to 500? Speed? You still need to sort every hit properly by the sort criteria.
BUT: I'd highly encourage you to upgrade to Elasticsearch 7.6.0, as there is a huge speed up optimization when sorting by dates and numbers. See the release blog post at https://www.elastic.co/blog/elasticsearch-7-6-0-released
I'm not looking for performance at all but handle pagination with one query.
In a natural form, I would have said
"can you give me the first 500 results that match these criteria by cutting them out from 0 to 29 then from 30 to 60"...
But I must thinking wrong way.
I should rather use a size of 500 and then slice the results within my php application
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.