views:

193

answers:

2

in my solr index i have in each document:

tag_name thread_name

i have no id for unique key and i cant 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?

+1  A: 

You could prepend the table name to the key value (thread.1 , tag.1)

MattMcKnight
exactly how do you mean?<uniqueKey>thread.1 , tag.1</uniqueKey> ?
weng
+1  A: 

Use a UUID() as key in your DataImportHandler query.

Mauricio Scheffer
thx it worked.how do one import relational tables? i have tried in vain for over 4 hours.i have a thread table consisting of id, language_id, post_id, country_id, region_id and city_id. how should i design data-config.xml?? plz help
weng
If it worked please at least mark it as the accepted answer. Then create other questions, one for each of your issues.
Mauricio Scheffer