Hi Nik, Indeed Elasticsearch builds priority queues of size `from+size` on each shard in order to find the top hits, which are then merged to get the collection-wide top hits. My understanding is that you would like to be able to configure an upper limit for the size of this priority queue, is it correct? I think this would be a great addition!
On Fri, Jan 24, 2014 at 9:56 AM, Nikolas Everett <[email protected]> wrote: > Is there a way to issue a query to Elasticsearch using the sort parameter > that limits the number of results that are sorted either per shard or > during the merge phase? I don't want to be able to accidentally load all > the documents into memory but I'm ok with returning less accurate results. > > Nik > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0uLma%3DiLF%3DrUj6cW_%3D5Cf0Y2e87%3DmB3-WKJ_f1dRqH9A%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Adrien Grand -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5xveNF-%3DyLtx%2BiH6-66bLjohBd9%2BJwgXEWJNXxJwRaVA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
