# Index Desing for IMDb Dataset

**URL:** <https://discuss.elastic.co/t/index-desing-for-imdb-dataset/172263>\
**Category:** Elasticsearch\
**Created:** [March 14, 2019, 7:18am UTC](https://discuss.elastic.co/t/index-desing-for-imdb-dataset/172263 "2019-03-14T07:18:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvmadhu](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@vvmadhu](https://discuss.elastic.co/u/vvmadhu)\
**Post date:** [March 14, 2019, 7:18am UTC](https://discuss.elastic.co/t/index-desing-for-imdb-dataset/172263/1 "2019-03-14T07:18:23Z")

</div>

We are working on building search solution using **IMDb dataset** , where we are writing some aggregation queries like **how many time cast X worked with crew Y**.

##My question here is,  
**What would be the good index model to support aggregate queries?** Would the flat structure is a good option or the embedded structure (movie having Cast and crew in it) would be the right option to have the aggregate queries.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 11, 2019, 7:18am UTC](https://discuss.elastic.co/t/index-desing-for-imdb-dataset/172263/2 "2019-04-11T07:18:24Z")

</div>

Closed on April 11, 2019, 7:18am UTC

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