lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinci <vinci.w...@polyu.edu.hk>
Subject Re: Multiple unique field?
Date Wed, 02 Apr 2008 04:04:19 GMT

Hi,

Thank you for your reply
In other word, can I set 2 unique key field?

Thank you,
Vinci


hossman wrote:
> 
> 
> : I want to set 2 field that are unique for different kind of searching.
> Does
> : it possible?
> 
> not unless you enforce it yourself -- there isn't anything built in to 
> Solr to do this with the exception of the uniqueKey field.
> 
> There is an UpdateRequestProcessorFactory hook that you can implement to 
> do arbitrary logic for each update command (regardless of wether the 
> update comes from XML, CSV, or something else) ... you could add whatever 
> uniqueness logic you want there.
> 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-unique-field--tp16367339p16441192.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message