Relative Content

Tag Archive for c#elasticsearch

Elasticsearch C# filter bool fields which are set to true

I use Elasticsearch C# client Elastic.Clients.Elasticsearch 8.13.3. I would like to filter records where ‘some_field’ is set to true. So only records with ‘some_field’ = false should be returned. And I’m not interesting in score. I came to the following two queries: