Is it possible to do this? Here's what I've tried:
{
"query": {
"bool": {
"should": {
"has_child": {
"type": "group",
"query": { "bool": { "should": { "match_all": { } } } },
"inner_hits": { },
"min_children": 0
}
}
}
}
}
Yet, even with "min_children": 0 the only hits are the parent documents containing 1 or more children.