# \`more\_like\_this\` filter doesn't understand index alias in doc reference

**URL:** <https://discuss.elastic.co/t/more-like-this-filter-doesnt-understand-index-alias-in-doc-reference/35392>\
**Category:** Elasticsearch\
**Created:** [November 24, 2015, 8:21am UTC](https://discuss.elastic.co/t/more-like-this-filter-doesnt-understand-index-alias-in-doc-reference/35392 "2015-11-24T08:21:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ulysses](https://avatars.discourse-cdn.com/v4/letter/u/90ced4/32.png) [@ulysses](https://discuss.elastic.co/u/ulysses)\
**Post date:** [November 24, 2015, 8:21am UTC](https://discuss.elastic.co/t/more-like-this-filter-doesnt-understand-index-alias-in-doc-reference/35392/1 "2015-11-24T08:21:38Z")

</div>

After an upgrade to 2.0.0 I noticed that my working `more_like_this` query broke and stopped finding matches.

I have figured out that the problem is in my usage of alias name in the `docs` section of the query. When changing the alias name to a real index name the query worked as expected. See more details about this issue on github [https://github.com/elastic/elasticsearch/issues/14944](https://github.com/elastic/elasticsearch/issues/14944).

Am I missing something?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 25, 2015, 12:45am UTC](https://discuss.elastic.co/t/more-like-this-filter-doesnt-understand-index-alias-in-doc-reference/35392/2 "2015-11-25T00:45:48Z")

</div>

Does this help? - [https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking\_20\_query\_dsl\_changes.html#\_more\_like\_this\_2](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_query_dsl_changes.html#_more_like_this_2)

---

<div class="post-metadata">

**Author:** ![ulysses](https://avatars.discourse-cdn.com/v4/letter/u/90ced4/32.png) [@ulysses](https://discuss.elastic.co/u/ulysses)\
**Post date:** [November 25, 2015, 6:36am UTC](https://discuss.elastic.co/t/more-like-this-filter-doesnt-understand-index-alias-in-doc-reference/35392/3 "2015-11-25T06:36:43Z")

</div>

Nope, it doesn't. I do use the query correctly.  
But thanks for trying

Sent from mobile device, typos and false corrections are possible

Regards,  
Leonid S. Usov

---

<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:** [July 5, 2017, 11:36pm UTC](https://discuss.elastic.co/t/more-like-this-filter-doesnt-understand-index-alias-in-doc-reference/35392/4 "2017-07-05T23:36:06Z")

</div>

Closed on July 5, 2017, 11:36pm UTC


