Yes, would be easier and performances wise if you do this at index time.
In the other hand, if you can't, had you tried nested query parser?

https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-NestedQueryParser

Ciao,
Vincenzo

--
mobile: 3498513251
skype: free.dev
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB