这是我当前的简单solr文档
{
"id": 1,
"type": "dad",
"_childDocuments_": [
{
"id": 2,
"name": "Alice"
},
{
"id": 3,
"name": "Bob"
}
]
}
您应该可以将childFilter
与parentFilter
一起使用
但是我仍然收到此错误:“嵌套架构时不应发送父级筛选器”
查询:
q=type:dad&fl= *,[child parentFilter=type:dad childFilter=name:Alice limit=10]
这应该是结果,但我收到上面的错误:
"response": {
"numFound": 1,
"start": 0,
"docs": [
{
"id": "1",
"type": ["dad"],
"_version_": 1603065478506348544,
"type_str": ["dad"],
"_childDocuments_": [
{
"id": "2",
"name": ["Alice"],
"_version_": 1603065478506348544,
"name_str": ["Alice"]
}
]
}
]
}