开发者

Unique key issue in solr

开发者 https://www.devze.com 2022-12-14 03:35 出处:网络
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.

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消