# Word Delimiter, Porter Stem, More Like This

**URL:** <https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974>\
**Category:** Elasticsearch\
**Created:** [July 27, 2011, 11:12am UTC](https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974 "2011-07-27T11:12:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladimir\_Shkurin](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@Vladimir\_Shkurin](https://discuss.elastic.co/u/Vladimir_Shkurin)\
**Post date:** [July 27, 2011, 11:12am UTC](https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974/1 "2011-07-27T11:12:38Z")

</div>

I created a gist of some tests that I made for ElasticSearch and a lot  
of queries did not return any results, but at the same queries for  
Solr finds the necessary documents.

> <https://gist.github.com/vshkurin/1109136>

Please tell me where is my mistake? Particularly I interested in why  
MLT don't find no one document, they are almost alike! 🙂

---

<div class="post-metadata">

**Author:** ![Vladimir\_Shkurin](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@Vladimir\_Shkurin](https://discuss.elastic.co/u/Vladimir_Shkurin)\
**Post date:** [July 27, 2011, 7:36pm UTC](https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974/2 "2011-07-27T19:36:48Z")

</div>

The problems with word delimiter and stemmer is solved! 🙂

I added this line to the mappings before properties.

"\_all" : {"enabled" : true, "index\_analyzer": "index\_analyzer",  
"search\_analyzer": "search\_analyzer"}

But does anyone know why not working "More Like This" search???

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 27, 2011, 10:13pm UTC](https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974/3 "2011-07-27T22:13:30Z")

</div>

On Wed, 2011-07-27 at 12:36 -0700, Vladimir Shkurin wrote:

> The problems with word delimiter and stemmer is solved! 🙂
> 
> I added this line to the mappings before properties.
> 
> "\_all" : {"enabled" : true, "index\_analyzer": "index\_analyzer",  
> "search\_analyzer": "search\_analyzer"}
> 
> But does anyone know why not working "More Like This" search???

Try playing with the min\_doc\_freq and min\_term\_freq - you probably don't  
have enough docs indexed to match the default criteria

clint

---

<div class="post-metadata">

**Author:** ![Vladimir\_Shkurin](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@Vladimir\_Shkurin](https://discuss.elastic.co/u/Vladimir_Shkurin)\
**Post date:** [July 28, 2011, 7:27am UTC](https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974/4 "2011-07-28T07:27:53Z")

</div>

Clinton, many thanks to you, you helped me a lot! I changed the  
request to this "\_mlt?min\_term\_freq=1&min\_doc\_freq=1" and MLT works! 🙂

---

<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, 3:58am UTC](https://discuss.elastic.co/t/word-delimiter-porter-stem-more-like-this/4974/5 "2017-07-06T03:58:59Z")

</div>


