# Similar sentences

**URL:** <https://discuss.elastic.co/t/similar-sentences/11893>\
**Category:** Elasticsearch\
**Created:** [May 9, 2013, 5:47am UTC](https://discuss.elastic.co/t/similar-sentences/11893 "2013-05-09T05:47:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Mido](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Ban\_Mido](https://discuss.elastic.co/u/Ban_Mido)\
**Post date:** [May 9, 2013, 5:47am UTC](https://discuss.elastic.co/t/similar-sentences/11893/1 "2013-05-09T05:47:02Z")

</div>

Hi ,

I am trying to find variants of a sentence using Elasticsearch.  
Based on my logic , following are perfect variants.

- Lion ate the sheep
  - Sheep was eaten by lion
  - Sheep ate the lion

I believe i can achieve this by using a proper analyzer ( all stop words  
removal + aggressive stemmer) and MLT with like 90% words matching.  
But then MLT is also giving me long sentences which have all the words in  
the above sample  
like

- Lion and sheep went on a walk and ate hamburger from McDonalds
- Sheep went to Lions house and ate dinner for the first date.

How can i achieve this ?

~Mido

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:37am UTC](https://discuss.elastic.co/t/similar-sentences/11893/2 "2017-07-06T02:37:26Z")

</div>

Closed on July 6, 2017, 2:37am UTC


