如何在NEST中编写术语查询查询

时间:2015-08-20 09:09:23

标签: elasticsearch nest

我想从NEST执行以下查询。我从这个例子开始 https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html

  

搜索与用户2

的关注者匹配的所有推文
curl -XGET localhost:9200/tweets/_search -d '{
  "query" : {
    "filtered" : {
      "filter" : {
        "terms" : {
          "user" : {
            "index" : "users",
            "type" : "user",
            "id" : "2",
            "path" : "followers"
          },
          "_cache_key" : "user_2_friends"
        }
      }
    }
  }
}'

0 个答案:

没有答案