What's the best way to get the whole search results with score in java api?

Hi Jörg,

Thanks for your reply. Do you know whether there is a better way to acquire
the whole search hits with score?

On Thursday, April 18, 2013 4:02:07 AM UTC+8, Jörg Prante wrote:

Your approach of iterating through the search result hits with setFrom()
and setSize() is limited by the available memory on the heap. If you use
"setFrom()", then all hits before the "from" position must be internally
computed. That is the reason why scan/scroll search has been introduced
as a better, more efficient alternative. Also you use
"setExplain(true)", which uses quite a bit of extra memory.

Jörg

Am 16.04.13 08:48, schrieb Jingang Wang:

While if the result size is large, say 5000, the program can not
promise obtain all the result hits, which is very wierd for me.
How could I resolve this problem and get the whole search hits set
successfully?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.