# Can I able to ignore Duplicate match it is effecting on entire relevance score

**URL:** https://discuss.elastic.co/t/can-i-able-to-ignore-duplicate-match-it-is-effecting-on-entire-relevance-score/369088
**Category:** Kibana
**Tags:** kql-kibana-query-language, search
**Created:** [October 19, 2024, 5:00am UTC](https://discuss.elastic.co/t/can-i-able-to-ignore-duplicate-match-it-is-effecting-on-entire-relevance-score/369088 "2024-10-19T05:00:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Anand\_Konagala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anand_konagala/32/120215_2.png) [@Anand\_Konagala](https://discuss.elastic.co/u/Anand_Konagala)
#### Post date: [October 19, 2024, 5:00am UTC](https://discuss.elastic.co/t/can-i-able-to-ignore-duplicate-match-it-is-effecting-on-entire-relevance-score/369088/1 "2024-10-19T05:00:42Z")

</div>

Hello,

When I perform a querying on Elasticsearch the duplicate matches also take score by Inverse Document Frequency and come top of the results. Can I ignore the duplicate matching.

top document,

```auto
"highlight": {
          "currentRole.jobTitle.keyword": [
            "<em>Administrative Assistant</em>"
          ],
          "jobTitle.text.keyword": [
            "<em>Administrative Assistant</em>",
            "<em>Administrative Assistant</em>",
            "<em>Administrative Assistant</em>",
            "<em>Executive Secretary</em>",
            "<em>Administrative Assistant</em>",
            "<em>Administrative Assistant</em>"
          ]
        }

```

next document,

```auto
"skills.text.keyword": [
            "<em>sales</em>",
            "<em>administrative duties</em>",
            "<em>CRM system</em>",
            "<em>sales</em>",
            "<em>administrative duties</em>"
          ],
          "currentRole.jobTitle.keyword": [
            "<em>Administrative Assistant</em>"
          ],
          "jobTitle.text.keyword": [
            "<em>Administrative Assistant</em>"
          ]

```

the first document matches single value in multiple times, In the second document It has matched with huge skills too. In this scenario I want to ignore duplicate match and return second document in top.  
Can I ignore a duplicate match can anybody suggest me a good query?

Thanks,
