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?


mobile: 3498513251
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