# Finding and grouping similar documents (finding best Pizza Margherita in tows use case)

**URL:** <https://discuss.elastic.co/t/finding-and-grouping-similar-documents-finding-best-pizza-margherita-in-tows-use-case/17404>\
**Category:** Elasticsearch\
**Created:** [May 8, 2014, 6:06am UTC](https://discuss.elastic.co/t/finding-and-grouping-similar-documents-finding-best-pizza-margherita-in-tows-use-case/17404 "2014-05-08T06:06:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Polyakov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_polyakov/32/1589_2.png) [@Alexander\_Polyakov](https://discuss.elastic.co/u/Alexander_Polyakov)\
**Post date:** [May 8, 2014, 6:06am UTC](https://discuss.elastic.co/t/finding-and-grouping-similar-documents-finding-best-pizza-margherita-in-tows-use-case/17404/1 "2014-05-08T06:06:41Z")

</div>

Hello,

I have an index of dishes in restaurants. Each dish is a document with name  
and properties like weight and ingredients. Is there a way that ES can  
group dishes with similar properties? E.g. in one restaurant a pizza is  
called "Pizza Margherita" in consists of tomato pasta, tomatoes and  
mozzarella cheese, in another it's called "Classical Italian Pizza" and  
consists from tomato pasta, tomatoes and mozzarella cheese, and in the  
third restaurant it's called "Margherita Supreme" and has tomato pasta,  
mozzarella, olives, garlic and basil leaves as ingredients.

I need a way to "link" this 3 pizzas into meta Margherita so users can  
query by "best Margherita in town" or "cheapest Margherita close to me" (of  
course each dish has a rating and geo coordinates from it's restaurant of  
origin).

If it were 3 pizzas, manual matching would sole the problems but there 100  
000 of various dishes with different names and ingredients.

Would appreciate any help and advice in which direction to look for the  
solution.

Kind regards,

Alexander

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b61f15e1-201b-4030-a013-d95638a1cfdd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b61f15e1-201b-4030-a013-d95638a1cfdd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:30am UTC](https://discuss.elastic.co/t/finding-and-grouping-similar-documents-finding-best-pizza-margherita-in-tows-use-case/17404/2 "2017-07-06T01:30:54Z")

</div>


