Hi all, is it possible to add attributes to our Solr fields ?
I'm indexing GATE-annotated documents into solr. The annotations produced by my GATE application usually have several features (for example, Person.title, Person.name, Person.phoneNumber...). Now each of my documents may contain more than one Person annotation, and each person might have more than one phone number... Unfortunately I don't know how to index all the features for one annotation in one field in solr. So instead, I would like to add an attribute "id" (or "offset") to each of the features I'm sending to Solr in order to be able to find out, for example, which Person.name goes with which Person.phoneNumber. So instead of: <doc> <str name="id">1</str> <arr name="person"> <str>Jane Doe</str> <str>John Doe</str> <arr name="person_phoneNumber"> <str>0123456789</str> <str>1234567890</str> <str>2345678901</str> </doc> I'd like to get something like this in Solr: <doc> <str name="id">1</str> <arr name="person"> <str id="1">Jane Doe</str> <str id="2">John Doe</str> <arr name="person_phoneNumber"> <str id="1">0123456789</str> <str id="1"> 1234567890</str> <str id="2">2345678901</str> </doc> This way it is easy to link the 2 first phone numbers to Jane Doe and the last one to John Doe. Any idea ? Thanks ! Jim