This gets really close:
q=
fl=id,subquery:[subquery],[shard]
subquery.q=
subquery.fq={!cache=false} +{!terms f=_root_ v=$row.id}
subquery.shards=$row.[shard]
The issue here is that local params aren't a thing except in a query parser,
and the "shards=" param isn't a query so
I have a large 7.2 index with nested documents and many shards.
For each result (parent doc) in a query, I want to gather a relevance-ranked
subset of the child documents. It seemed like the subquery transformer would be
ideal:
https://lucene.apache.org/solr/guide/7_2/transforming-result-docume