On 6/3/2013 7:12 AM, Raheel Hasan wrote:
> I am importing multiple table (by join) into solr using DIH. All is set,
> except for 1 confusion:
> what to do with "*<uniqueKey>*" in schema?
> 
> When I had only 1 table, I had it fine. Now how to put 2 uniqueKeys (both
> from different table).
> 
> For example:
> 
> <uniqueKey>table1_id</uniqueKey>
> <uniqueKey>table2_id</uniqueKey>

Solr can only have one uniqueKey field per index.  It's a completely
flat schema.  If you have two DB tables in one index, then the fact that
it's two separate tables is lost.  You'll have to either live with
uniqueKey being only one value, or you'll have to combine the two values
into one single-valued field before it gets to Solr and use that for
your uniqueKey.

Thanks,
Shawn

Reply via email to