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 Ninad Raut <hb...@gmail.com> on 2009/08/10 10:35:00 UTC
Multiple Unique Ids
Hi,
I have two Ids DocumentId and AuthorId. I want both of them unique. Can i
have two <uniqueKey> in my document?
<uniqueKey>id</uniqueKey>
<uniqueKey>authorId</uniqueKey>
Regards,
Ninad Raut
Re: Multiple Unique Ids
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Mon, Aug 10, 2009 at 2:05 PM, Ninad Raut <hb...@gmail.com>wrote:
> Hi,
> I have two Ids DocumentId and AuthorId. I want both of them unique. Can i
> have two <uniqueKey> in my document?
> <uniqueKey>id</uniqueKey>
> <uniqueKey>authorId</uniqueKey>
>
No. You can have only one uniqueKey in solrconfig.xml. But during indexing
you can create the uniqueKey value as "id-authorid".
--
Regards,
Shalin Shekhar Mangar.