【发布时间】:2012-03-21 01:23:09
【问题描述】:
假设我有以下映射:
"site": {
"properties": {
"title": { "type": "string" },
"description": { "type": "string" },
"category": { "type": "string" },
"tags": { "type": "array" },
"point": { "type": "geo_point" }
"localities": {
type: 'nested',
properties: {
"title": { "type": "string" },
"description": { "type": "string" },
"point": { "type": "geo_point" }
}
}
}
}
然后我对父文档进行“_geo_distance”排序,并能够对“site.point”上的文档进行排序。但是,我还希望嵌套的位置在父文档中按“_geo_distance”排序。
这可能吗?如果有,怎么做?
【问题讨论】:
标签: elasticsearch