# Aggregation on similarity

**URL:** <https://forum.opensearch.org/t/aggregation-on-similarity/18376>\
**Category:** OpenSearch\
**Created:** [March 14, 2024, 2:45pm UTC](https://forum.opensearch.org/t/aggregation-on-similarity/18376 "2024-03-14T14:45:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fisherijus](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@fisherijus](https://forum.opensearch.org/u/fisherijus)\
**Post date:** [March 14, 2024, 2:45pm UTC](https://forum.opensearch.org/t/aggregation-on-similarity/18376/1 "2024-03-14T14:45:58Z")

</div>

**Describe the issue** :  
I am feeding documents to Openseach that containt field ‘MessageText’ and i want to aggregate it and to show most common similar messages texts. I would consider that messages are similar if score is high enough.

for example:

text #1 → hello my name is Jhon  
text #2 → Hello my name is Lisa  
text #3 → Helo i want pizza.

and i would get:

Hello my name is Jhon → Count =2  
Hello i want pizza → Count = 1
