Search code examples
asp.netelasticsearch.net-coreodata

Convert OData filter query to Elasticsearch query in .NET?


I would like to convert an OData query:

$filter=(ContentProvider%20eq%20'HBO'%20or%20ContentProvider%20eq%20'ParamountPlus')%20and%20ProgramType%20eq%20'Series'

... to an Elasticsearch Query DSL, or NEST object in .NET.

How anyone done something similar, or have any tips?


Solution

  • Here's an example, feel free to contribute with issues, feature ideas, example OData queries that you would like to be supported: https://github.com/cristipufu/elasticsearch-odata-net