# Advanced "MoreLikeThat" question

**URL:** <https://discuss.elastic.co/t/advanced-morelikethat-question/105703>\
**Category:** Elasticsearch\
**Created:** [October 30, 2017, 3:57am UTC](https://discuss.elastic.co/t/advanced-morelikethat-question/105703 "2017-10-30T03:57:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Illidan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/illidan/32/54264_2.png) [@Illidan](https://discuss.elastic.co/u/Illidan)\
**Post date:** [October 30, 2017, 3:57am UTC](https://discuss.elastic.co/t/advanced-morelikethat-question/105703/1 "2017-10-30T03:57:59Z")

</div>

Lets assume, I have a database of movies (like IMDB), where each movie document has properties: "Title", "Description" and "Category" (e.g. "action", "horror", etc)

When user selects some movie to read about, in addition to showing description of selected movie I need to show him another 5 "recommended movies" (only titles and categories).

Each "Recommended Movie" has to be:

1. with similar title
2. belongs to other category than selected movie
3. each one has different category

For example, if user selected "comedy", I want to recommend him movies from another categories, but each recommended movie has to be from another category.

I suspect that I have to use "MoreLikeThat" query to get similar movies, but how I query movies that belongs to other category that selected movie and each movie from different category?

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:** [November 27, 2017, 3:58am UTC](https://discuss.elastic.co/t/advanced-morelikethat-question/105703/2 "2017-11-27T03:58:21Z")

</div>

Closed on November 27, 2017, 3:58am UTC

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