Here’s two articles that talk about the Elastic Query then Fetch phase. It helps understand where aggregations, filters, etc happen. I’ve come across more detailed diagrams too, but couldn’t find them.
- Anatomy of an Elasticsearch Cluster: Part I | by Ronak Nathani | Insight
- https://www.elastic.co/blog/found-optimizing-elasticsearch-searches
I submitted the first two to GitHub for some improved usage docs:
- [Documentation]: DQL requires a specific order when using @count with @recurse · Issue #461 · dgraph-io/dgraph-docs · GitHub
- [Documentation]: Provide an example of how to use count a predicate that with a filter · Issue #462 · dgraph-io/dgraph-docs · GitHub
Thanks for the help!