I think I know where you're headed, I was struggling with the same issue. In my case, using results from Solr I link to a detailed profile using an ID, but I am displaying the String value. I was looking for something like:
<doc> <arr name="ITEM"> <str name="ITEM_ID">12345</str> <sub_doc> <str name="FEATURE_LABEL">Feature 1 label</str> <str name="FEATURE_ID">1</str> </sub_doc> <sub_doc> <str name="FEATURE_LABEL">Feature 2 label</str> <str name="FEATURE_ID">2</str> </sub_doc> </component> </doc> ...or something similar, some way of linking child items together. Unfortunately, this isn't how Solr works. This issue is addressed in the Solr 1.4 book by Smiley and Pugh. This related snippet is from Chapter 2, page 36, dealing with an example application with a Music artist's name, and a related id. "...If we only record the name, then it is problematic to do things like have links in the UI from a band member to that member's detail page... This means that we'll need to have an additional multi-valued field for the member's ID. Multi-valued fields maintain ordering so that the two fields would have corresponding values at a given index. Beware, there can be a tricky case when one of the values can be blank, and you need to come up with a placeholder. The client code would have to know about this placeholder." So it seems that we will be assured that the multivalued fields will be in the same order, so we can use the same index number. This seems clunky to me, but I have not come across any other solutions. -- View this message in context: http://lucene.472066.n3.nabble.com/Schema-Definition-Question-tp1049966p1105593.html Sent from the Solr - User mailing list archive at Nabble.com.