I'm trying to use Solr to store information from a few different sources in one large index. I need to create a unique key for the Solr index that will be unique per document. If I have 3 systems, and they all have a document with id=1, then I need to create a "uniqueId" field in my schema that contains both the system name and that id, along the lines of: "sysa1", "sysb1", and "sysc1". That way, each document will have a unique id.
I added this to my schema.xml: <copyField source="source" dest="uniqueId"/> <copyField source="id" dest="uniqueId"/> However, after trying to insert, I got this: java.lang.Exception: ERROR: multiple values encountered for non multiValued copy field uniqueId: sysa So instead of just appending to the uniqueId field, it tried to do a multiValued. Does anyone have an idea on how I can make this work? Thanks! -- Chris