在Elasticsearch中,我可以使用>搜索所有文档吗? * N *嵌套子文件?

时间:2015-07-08 17:20:30

标签: elasticsearch

我们说我有一个社交网络,其中包含以下映射:

{
  “users” : {
    “properties” : {
      “username” : {“type” : “string”, "index": "not_analyzed”},
      “full_name” : {“type” : “string”},
      “friends” : {
        “type” : “nested”,
        “properties” : {
          “username” : {“type” : “string”, "index": "not_analyzed”},
          “date_friended” : {“type” : “date”},
        }
      }
    } 
  }
}

我可以使用>搜索所有用户吗? 5个朋友?截至目前,我在父文档中维护了一个单独的子项计数。

我可以将此作为过滤查询吗?我需要使用聚合吗?

提前致谢!

0 个答案:

没有答案
相关问题