开发者

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)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜