# Elasticsearch - Score for a document pair

**URL:** <https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172>\
**Category:** Elasticsearch\
**Created:** [July 8, 2022, 7:21am UTC](https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172 "2022-07-08T07:21:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pazhaniyappan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pazhaniyappan/32/24717_2.png) [@Pazhaniyappan](https://discuss.elastic.co/u/Pazhaniyappan)\
**Post date:** [July 8, 2022, 7:21am UTC](https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172/1 "2022-07-08T07:21:40Z")

</div>

Hello,

Is there a way to find out the similarity between the two documents?

For example,

I have document A and document B in JSON format.

I will select some parameters from the documents for calculating the match score.

I will not register the documents.

I need to find out the match score between document A and document B.

Please let me know if this is possible.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 8, 2022, 12:52pm UTC](https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172/2 "2022-07-08T12:52:41Z")

</div>

Elasticsearch is a search engine, and this seems completely unrelated. I would recommend creating a script to calculate the similarity you are looking for.

---

<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:** [August 5, 2022, 12:52pm UTC](https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172/3 "2022-08-05T12:52:49Z")

</div>

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