You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Anurag Verma <ve...@gmail.com> on 2014/02/07 13:05:09 UTC
Solr Composite Unique key from existing fields in schema
Hi,
I am developing a search application using SOLR. I don't have primary
key in any table. Composite key is being used in my application. How do i
implement composite key as unique key in this case. please help. i am
struggling.
--
Thanks & Regards
Anurag Verma
Arise! Awake! And stop not till the goal is reached!
Re: Solr Composite Unique key from existing fields in schema
Posted by "tamanjit.bindra@yahoo.co.in" <ta...@yahoo.co.in>.
You could use a combination of all your composite key columns and put them in
a field in solr which can then be used as the unique key. As in if you have
two columns c1 and c2, you could have a field in solr which have the value
as c1_c2 or something on those lines.
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Composite-Unique-key-from-existing-fields-in-schema-tp4116036p4116195.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr Composite Unique key from existing fields in schema
Posted by "tamanjit.bindra@yahoo.co.in" <ta...@yahoo.co.in>.
Also take a look at
http://wiki.apache.org/solr/UniqueKey#Use_cases_which_require_a_unique_key_generated_from_data_in_the_document
<http://wiki.apache.org/solr/UniqueKey#Use_cases_which_require_a_unique_key_generated_from_data_in_the_document>
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Composite-Unique-key-from-existing-fields-in-schema-tp4116036p4116198.html
Sent from the Solr - User mailing list archive at Nabble.com.