Data Model Pattern for Analytics/Reporting (Star Schema or Materialized View)?

Adding an example following the star schema and how to query efficiently though search indexes:
https://dev.to/franckpachot/mongodb-with-search-indexes-queried-as-kimballs-star-schema-with-facts-and-dimensions-k1