elasticsearch has_parent和查询条件联合过滤数据
GET my_test_index/_search
{
"query": {
"bool": {
"must": [
{
"term": {
"Type": "2" //子文档条件
}
},
{
"has_parent": {
"parent_type": "parent_table", //父文档
"query": {
"match": {
"number": "5203021066009201800035" //父文档条件
}
}
}
}
]
}
}
}