# More\_like\_this search doesn't work

**URL:** <https://discuss.elastic.co/t/more-like-this-search-doesnt-work/103525>\
**Category:** Elasticsearch\
**Created:** [October 11, 2017, 9:47am UTC](https://discuss.elastic.co/t/more-like-this-search-doesnt-work/103525 "2017-10-11T09:47:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artem](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Artem](https://discuss.elastic.co/u/Artem)\
**Post date:** [October 11, 2017, 9:47am UTC](https://discuss.elastic.co/t/more-like-this-search-doesnt-work/103525/1 "2017-10-11T09:47:47Z")

</div>

Hi, there. Trying to use more\_like\_this function and seems like it doesn't work at the latest version of ES. Any ideas what is wrong?

-----I have created index ----

PUT /test\_index2  
{

"mappings": {  
"doc": {  
"properties": {  
"city": {  
"type": "text",  
"term\_vector": "yes",  
"analyzer": "keyword"  
}  
}  
}  
}  
}

PUT /test\_index2/doc/2  
{  
"city": ["Wellington"]  
}

---- put some data ----  
PUT /test\_index2/doc/2  
{  
"city": ["New York"]  
}

--- now trying to search ---  
GET test\_index2/\_search  
{  
"query": {  
"more\_like\_this" : {  
"fields" : ["city"],  
"like" : "Welling"  
}  
}  
}

---

<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 8, 2017, 9:48am UTC](https://discuss.elastic.co/t/more-like-this-search-doesnt-work/103525/2 "2017-11-08T09:48:14Z")

</div>

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