记一次 es 嵌套索引 查询优化

在这里插入图片描述
本人才疏学浅,希望大佬勿喷,欢迎指正
es索引结构:

{
“_index”: “content_audit”,
“_type”: “contentaudit”,
“_id”: “200304010208-1601377383513796”,
“_score”: 1,
“_source”: {
“device_id”: “200304010208”,
“id”: “200304010208-1601377383513796”,
“sip”: “192.168.2.19”,
“sport”: “10289”,
“smac”: “48:8A:D2:B1:17:AC”,
“dip”: “36.99.196.217”,
“dport”: “80”,
“dmac”: “48:46:FB:E8:89:23”,
“xm_dir”: “2”,
“trans_dir”: “2”,
“app_pro”: “Http”,
“protocol”: “http”,
“domain”: “dl.wps.md.wpscdn.cn”,
“mail_from”: null,
“rcpt_to”: null,
“ehlo”: null,
“url”: “”,
“method”: “GET”,
“ret_code”: “200”,
“user_agent”: “-”,
“cookie”: “-”,
“server”: “-”,
“refer”: “-”,
“account”: null,
“pwd”: null,
“sender”: null,
“receiver”: null,
“cc”: null,
“bcc”: null,
“subject”: null,
“msg_content”: null,
“time”: “2020-09-29 11:03:03”,
“content_type”: “1022”,
“source_type”: “2”,
“is_detect”: null,
“detect_time”: null,
“is_upload”: null,
“upload_time”: null,
“if_read”: null,
“handle_status”: null,
“handle_message”: null,
“files”: [
{
“checksum”: “787101d9e86da9365fbe1cdcb0dfbfb6”,
“fileName”: “text_uint_calculation.pptx”,
“text”: "点击此处添加正文。点击此处添加正文,请言简意赅的阐述观点。点击
“typeName”: “财经”,
“typeId”: 0,
“typeScore”: 0.42070859699119717
}
]
},
“highlight”: {
“files.text”: [
“”"为了能让您有更直观的字数感受,并进一步方便使用
]
},
“sort”: [
1,
1601377383000
]
},

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值