lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Multiple Unique Ids
Date Tue, 11 Aug 2009 15:21:52 GMT
On Mon, Aug 10, 2009 at 2:05 PM, Ninad Raut <hbase.user.ninad@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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message