After you have covered that, we will be able to understand how in the query phase, ElasticSearch will get to know which documents (after sorting and pagination) to fetch and then fetch them in the fetch phase.
You will also benefit from covering some of the basics of how the in-memory structures are created/maintained (I am talking about inverted indices vs field data here). That will cover how the documents are targeted during aggregations. Please read this: https://www.elastic.co/guide/en/elasticsearch/guide/current/fielddata-intro.html
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.