This is the my current simple solr doc
{
"id": 1,
"type": "dad",
"_childDocuments_": [
{
"id": 2,
"name": "Alice"
},
{
"id": 3,
"name": "Bob"
}
]
}
You should be able to use childFilter
along with the parentFilter
However I keep getting this error: "Parent filter should not be sent when the schema is nested"
Query:
q=type:dad&fl= *,[child parentFilter=type:dad childFilter=name:Alice limit=10]
This should then be result but I am getting the error above:
"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"]
}
]
}
]
}