How does elasticsearch limit the results of a query on multiple index search?

Say i queried data that is contained in 5 indexes, and the results are limited to 100 will elasticsearch search all the indexes and get 20 results from each or get 100 results from the first index it encounters?

It actually works on a shard level. is old documentation (written for 2.X), but the concept is still the same.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.