# MLT Search result is not filtered based on routing

**URL:** <https://discuss.elastic.co/t/mlt-search-result-is-not-filtered-based-on-routing/16575>\
**Category:** Elasticsearch\
**Created:** [March 25, 2014, 4:37am UTC](https://discuss.elastic.co/t/mlt-search-result-is-not-filtered-based-on-routing/16575 "2014-03-25T04:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratikshya\_Kuinkel](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Pratikshya\_Kuinkel](https://discuss.elastic.co/u/Pratikshya_Kuinkel)\
**Post date:** [March 25, 2014, 4:37am UTC](https://discuss.elastic.co/t/mlt-search-result-is-not-filtered-based-on-routing/16575/1 "2014-03-25T04:37:22Z")

</div>

I have grandparent - parent - child mappings set up via routing. Normal  
searching using routing information is working as expected. However, if I  
provide a document id to find documents relevant to it, it does not filter  
the search result based on the routing information provided. For example:  
if I have two custom routings with values 111 and 666 respectively. There  
are few documents for routing 111 and few for 666. When I execute mlt query  
for a document in 111 with routing=111, it also shows documents in routing  
666 in the search result. How can I filter it to show only documents in 111  
but not in 666?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8439d58c-56ee-4635-8cf2-dc466310161c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8439d58c-56ee-4635-8cf2-dc466310161c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:40am UTC](https://discuss.elastic.co/t/mlt-search-result-is-not-filtered-based-on-routing/16575/2 "2017-07-06T01:40:53Z")

</div>


