Do that with a custom update request processor. Just remember Solr is there to find things not to preserve structure. So mangle your data until you can find it.
Also check if SirenDB would fit your requirements if you want to encode the information as complex structure. Regards, Alex