Unique key issue in solr
In my solr index I have in each document:
tag_name
thread_name
I h开发者_高级运维ave no id for unique key and I can't turn it off because then solr says that queryelevationcomponent needs one.
Even if I add tag_id or thread_id it wont work because they got identical id. tag.id = 1 and thread.id = 1.
How should I get around this issue?
Use a UUID() as key in your DataImportHandler query.
You could prepend the table name to the key value (thread.1 , tag.1)
精彩评论