I am trying to figure out the best way to issue my queries as to not flood 
the heap with data I may not care about. Before each query, I do a count 
search type to identify how many results I am potentially dealing with. 
When I specify a "size" in my search query, how exactly does that impact 
results and the heap? If I run a query that matches 50k documents and I am 
only interested in 25 (specified by size), are all 50K still loaded into 
memory? Is there a way to get just the top 25 results off the query match 
without loading all hits into memory or is that how size actually works?

-- 
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/9837a8e5-ddf6-4684-8fe0-dd6909bcee48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to