您当前的位置: 首页 >  ar

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

使用kibana查询elasticsearch嵌套对象之嵌套类型

qq_34412985 发布时间:2021-11-22 22:29:35 ,浏览量:0

 

user字段映射为nested类型,而不是默认的object类型

curl -XGET 'localhost:9200/my_index/_search?pretty' -H 'Content-Type: application/json' -d'
{
  "query": {
    "nested": {
      "path": "user",
      "query": {
        "bool": {
          "must": [
            { "match": { "user.first": "Alice" }},
            { "match": { "user.last":  "Smith" }} 
          ]
        }
      }
    }
  }
}

GET uat-buriedpoint_xfs.com-2021-11/_search {   "query": {     "bool": {       "must": [         { "match": { "body.buriedPointInfo.userInfo.sid": "1b5bd8a4787445b1a8ab7061d24e98d5" }},         { "match": { "body.buriedPointInfo.requestInfo.url": "/auth/user/getUserRoles" }}                ]     }   } }

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0403s