0

Is it possible to create a composite uniqueKey in schema.xml? Or is it better to concatenate the unique fields into one unique string id field in the source data?

If it's possible, and if it's not that big of a difference, I would prefer to do the former because it would save me a bit of time.

BVernon
  • 3,205
  • 5
  • 28
  • 64

1 Answers1

1

As discussed here How to set multiple fields as uniqueKey in solr? or there http://lucene.472066.n3.nabble.com/Multiple-uniqueKey-fields-td472939.html u cannot simply add multiple fields. Ud need to combine them into one field, but this can not be a multivalued field.

awagen
  • 236
  • 2
  • 8