Filtering elastic search results based on score

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))

     ));

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