# Filtering elastic search results based on score

**URL:** https://discuss.elastic.co/t/filtering-elastic-search-results-based-on-score/344136
**Category:** Elasticsearch
**Created:** [September 29, 2023, 12:30pm UTC](https://discuss.elastic.co/t/filtering-elastic-search-results-based-on-score/344136 "2023-09-29T12:30:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mreddy9](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mreddy9](https://discuss.elastic.co/u/mreddy9)
#### Post date: [September 29, 2023, 12:30pm UTC](https://discuss.elastic.co/t/filtering-elastic-search-results-based-on-score/344136/1 "2023-09-29T12:30:16Z")

</div>

Hi All,

I'm using the following c# code to query the elastic and trying to filter the results which has less than 50% score but it still returning all results which has score more than 50%. Please help to resolve this issue.

var filterConditions = new List\<Func\<QueryContainerDescriptor, QueryContainer\>\>();

```
        filterConditions.Add(q => q.MultiMatch(m => m
            .Fields("*")
            .Query(searchText)
        ));

        var result = client.Search<ElasticMappings>(s => s

```

.MinScore(0.5)  
.Query(q =\> q  
.Bool(b =\> b  
.Should(filterConditions))

```
     ));

```

---

<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: [October 27, 2023, 12:31pm UTC](https://discuss.elastic.co/t/filtering-elastic-search-results-based-on-score/344136/2 "2023-10-27T12:31:05Z")

</div>

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