# More like this query not working on 1.7

**URL:** <https://discuss.elastic.co/t/more-like-this-query-not-working-on-1-7/29519>\
**Category:** Elasticsearch\
**Created:** [September 17, 2015, 8:34pm UTC](https://discuss.elastic.co/t/more-like-this-query-not-working-on-1-7/29519 "2015-09-17T20:34:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tapanggupta](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@tapanggupta](https://discuss.elastic.co/u/tapanggupta)\
**Post date:** [September 17, 2015, 8:34pm UTC](https://discuss.elastic.co/t/more-like-this-query-not-working-on-1-7/29519/1 "2015-09-17T20:34:35Z")

</div>

GET /XXX/stories/\_search  
{  
"more\_like\_this" : {  
"like\_text" : "Don't hate",  
"min\_term\_freq" : 1,  
"max\_query\_terms" : 12  
}  
}

This is giving me parsing exception.

---

<div class="post-metadata">

**Author:** ![tapanggupta](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@tapanggupta](https://discuss.elastic.co/u/tapanggupta)\
**Post date:** [September 17, 2015, 8:55pm UTC](https://discuss.elastic.co/t/more-like-this-query-not-working-on-1-7/29519/2 "2015-09-17T20:55:26Z")

</div>

GET /XXX/stories/\_search  
{  
"query": {  
"more\_like\_this" : {  
"like\_text" : "Don't hate",  
"min\_term\_freq" : 1,  
"max\_query\_terms" : 12  
}  
}  
}

Figured out it needs to be under query. But strange thing is it gave me nothing back.  
I am sure at least 200+ documents had that text

---

<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:49pm UTC](https://discuss.elastic.co/t/more-like-this-query-not-working-on-1-7/29519/3 "2017-07-05T23:49:35Z")

</div>


