Search is executed in a two-phase process called query then fetch.
Query Phase
During the initial query phase, the query is broadcast to a shard copy(a primay or replica shard) of every shard in the index. Each shard executes the search locally and builds a priority queue of matching documents.
Fetch Phase
Search Options