数据类似如下{
"uuid": "853BE26A461EB840084A05BFE53DC902",
"ip": [
{
"def_ip": "10.47.20.216",
"ip_int": 170857688
}
],
"client_inf": {
"mac": "44-87-FC-45-91-4C",
"memory_size": "2G",
"install_time": 1469064694,
"work_group": "WORKGROUP",
"hardware_id": " WD-WMAV2N618528",
"harddisk_size": "305G",
"orderalias": "GA-20160309TGKY"
}
}
我想精确查找 def_ip 或者 mac ,查询语句应该怎么写
"uuid": "853BE26A461EB840084A05BFE53DC902",
"ip": [
{
"def_ip": "10.47.20.216",
"ip_int": 170857688
}
],
"client_inf": {
"mac": "44-87-FC-45-91-4C",
"memory_size": "2G",
"install_time": 1469064694,
"work_group": "WORKGROUP",
"hardware_id": " WD-WMAV2N618528",
"harddisk_size": "305G",
"orderalias": "GA-20160309TGKY"
}
}
我想精确查找 def_ip 或者 mac ,查询语句应该怎么写
2 个回复
cyberdak
赞同来自: hansongnan 、printf_uck
嵌套对象就是 `client_inf.mac:"yy"`
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自: