# Elasticsearch more\_like\_this

**URL:** <https://discuss.elastic.co/t/elasticsearch-more-like-this/58462>\
**Category:** Elasticsearch\
**Created:** [August 19, 2016, 1:28pm UTC](https://discuss.elastic.co/t/elasticsearch-more-like-this/58462 "2016-08-19T13:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtangutoori](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vtangutoori](https://discuss.elastic.co/u/vtangutoori)\
**Post date:** [August 19, 2016, 1:28pm UTC](https://discuss.elastic.co/t/elasticsearch-more-like-this/58462/1 "2016-08-19T13:28:08Z")

</div>

Hi,  
I am trying to build a search engine using more\_like\_this query, but the result set does not have matching documents,  
In the below example i am using the text in field 4 to contain "primary" but the first document itself does not contain the text in the field, can you please check the below query and tell me where i am going wrong.

GET /indexname/typename/\_search?size=10000

{  
"more\_like\_this" : {  
"fields" : ["field1", "field2", "field3", "field4"],  
"like" : "primary",  
"min\_term\_freq" : 1,  
"max\_query\_terms" : 12  
}  
}

---

<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, 10:26pm UTC](https://discuss.elastic.co/t/elasticsearch-more-like-this/58462/2 "2017-07-05T22:26:36Z")

</div>


