Is limited by max_results_window?


Does the field returned for a query reflect the true total number of hits from the entire index, or is it restricted to max_result_window for the index? I'm using the JavaScript elasticsearch client.

(Nik Everett) #2 is limited by terminate_after. max_result_window is just the biggest min-heap we allow ES to build per shard for collecting the actual results. is just a count of the hits so it shouldn't be limited.

(system) #3