居然是你

has_parent query 如何支持对子文档进行查询,如下面的语句

Elasticsearch | 作者 方磊 | 发布于2018年06月16日 | 阅读数:2313

{
"query": {
"term": {
"id": {
"value": "1"
}
},
"has_parent": {
"parent_type": "objects",
"query": {
"bool": {
"must": [
{
"nested": {
"path": "cities",
"query": {
"term": {
"cities.provinceCode": {
"value": "330000"
}
}
}
}
}
]
}
}
}
}
}
已邀请:

要回复问题请先登录注册