# How to remove low correlation results?

**URL:** https://discuss.elastic.co/t/how-to-remove-low-correlation-results/335056
**Category:** Elasticsearch
**Created:** [June 2, 2023, 8:31am UTC](https://discuss.elastic.co/t/how-to-remove-low-correlation-results/335056 "2023-06-02T08:31:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jinnrry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jinnrry/32/118183_2.png) [@Jinnrry](https://discuss.elastic.co/u/Jinnrry)
#### Post date: [June 2, 2023, 8:31am UTC](https://discuss.elastic.co/t/how-to-remove-low-correlation-results/335056/1 "2023-06-02T08:31:03Z")

</div>

I want to be able to filter my search results for less relevant results. So I use the `min_score` for filtering.

like this:

```auto
GET xxx/_search
{
  "min_score": 2.8,
  "query": {
    "match": {
      "xxx": "xxxx"
    }
  }
}

```

But the max\_score is different for different search keyword, which leads to the fact that sometimes I need to filter results with a score less than 20 and sometimes I need to filter results with a score less than 10.

And this threshold I have no way to determine, anyone have any ideas?

For example, I searched for the term `Maciachini Apartments R&R` and the results returned with a score greater than 20 met my needs (_return max\_score is 40+_) . But when I searched for the term `R R`, the words with a score greater than 10 were the ones I needed (_return max\_score is 10+_) . So how do I determine this threshold?

Can there be any way to return es to a uniform score standard? Or is there any way I can filter the data for 80% of the maximum score?

Like this

```auto
GET xxx/_search
{
  "min_score": max_score*0.8,
  "query": {
    "match": {
      "xxx": "xxxx"
    }
  }
}

```

---

<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: [June 30, 2023, 8:31am UTC](https://discuss.elastic.co/t/how-to-remove-low-correlation-results/335056/2 "2023-06-30T08:31:43Z")

</div>

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