我正在尝试填充具有父子关系的对象,但出现错误:
[Elastica\Exception\ResponseException] RoutingMissingException[[myindex]/[comment]/[12345] 需要路由]
conf类型的摘录:
article:
_source:
enabled: false
mappings:
...
comment:
_source:
enabled: false
_parent:
type: article
property: article_id
identifier: id
_routing:
required: true
path: article_id
mappings:
article:
type: long
index: not_analyzed
...
无法理解我在这里缺少什么....
我正在使用 Symfony2.3、FOSElasticaBundle 3.0、ElasticSearch 1.2.2