Friday, March 2, 2018

ElasticSearch - Writing bool queries more elegantly

The default syntax for writing boolean queries using NEST can be quite verbose with deep nesting:

A shorter syntax exists using operators:

More information: https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/bool-queries.html

No comments: