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 Anand Kumar Prabhakar <an...@gmail.com> on 2009/07/14 11:13:47 UTC

Using Multiple fields in UniqueKey

Is there any possiblity of Adding Multiple fields to the UniqueKey in
Schema.xml(An Implementation similar to Compound Primary Key)? 


-- 
View this message in context: http://www.nabble.com/Using-Multiple-fields-in-UniqueKey-tp24476088p24476088.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Using Multiple fields in UniqueKey

Posted by Fergus McMenemie <fe...@twig.me.uk>.
>Some ideas:
>
>- Use copyField to copy fields to the field designated as the uniqueKey (not sure if this will work)
>- Create the field from existing data before sending docs to Solr
>- Create a custom UpdateRequestProcessor that adds a field for each document it processes and stuffs it with other fields' values
>- Try http://wiki.apache.org/solr/Deduplication
>
And of course, when using DIH you can use templateTransformer and or regexTransformer to 
merge field fragments to generate UID's

>I'd be curious to know which of these you will choose.
>
>
>Otis --
>Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
>----- Original Message ----
>> From: Anand Kumar Prabhakar <an...@gmail.com>
>> To: solr-user@lucene.apache.org
>> Sent: Tuesday, July 14, 2009 5:13:47 AM
>> Subject: Using Multiple fields in UniqueKey
>> 
>> 
>> Is there any possiblity of Adding Multiple fields to the UniqueKey in
>> Schema.xml(An Implementation similar to Compound Primary Key)? 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Using-Multiple-fields-in-UniqueKey-tp24476088p24476088.html
>> Sent from the Solr - User mailing list archive at Nabble.com.

-- 

===============================================================
Fergus McMenemie               Email:fergus@twig.me.uk
Techmore Ltd                   Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer
===============================================================

Re: Using Multiple fields in UniqueKey

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Some ideas:

- Use copyField to copy fields to the field designated as the uniqueKey (not sure if this will work)
- Create the field from existing data before sending docs to Solr
- Create a custom UpdateRequestProcessor that adds a field for each document it processes and stuffs it with other fields' values
- Try http://wiki.apache.org/solr/Deduplication

I'd be curious to know which of these you will choose.


Otis --
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Anand Kumar Prabhakar <an...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Tuesday, July 14, 2009 5:13:47 AM
> Subject: Using Multiple fields in UniqueKey
> 
> 
> Is there any possiblity of Adding Multiple fields to the UniqueKey in
> Schema.xml(An Implementation similar to Compound Primary Key)? 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Using-Multiple-fields-in-UniqueKey-tp24476088p24476088.html
> Sent from the Solr - User mailing list archive at Nabble.com.