ES的父子查询中如何使用scripts的来过滤数据
{
"from": 0,
"size": 10,
"query": {
"bool": {
"filter": [
{
"has_child": {
......
}
"inner_hits":{}
},
"script" : {
"lang": "painless",
"script" : ""
}
}
]
}
}
}
{
"from": 0,
"size": 10,
"query": {
"bool": {
"filter": [
{
"has_child": {
......
}
"inner_hits":{}
},
"script" : {
"lang": "painless",
"script" : ""
}
}
]
}
}
}
1 个回复
rochy - rochy_he
赞同来自:
可以参考官方文档:https://www.elastic.co/guide/e ... .html