Convert ElastichSearch query to NEST query

Hi all,

I have a ElasticSearch query:

{
  "query": {
    "bool": {
      "must": [
        {
          "query_string": {
            "query": "*",
            "analyze_wildcard": true
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": "2018-03-13 00:00:00",
              "lte": "2018-03-13 23:59:59",
              "format": "yyyy-MM-dd HH:mm:ss"
            }
          }
        }
      ]
    }
  },
  "size": 0,
  "aggs": {
    "2": {
      "terms": {
        "field": "Url.keyword",
        "include": ".*/giai-tri/.*",
        "size": 20,
        "order": {
          "_count": "desc"
        }
      }
    }
  }
}

I want to convert to NEST search query to program.

I try some case but not work for me.

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