Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 1805 invoked from network); 2 Apr 2008 04:04:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 04:04:54 -0000 Received: (qmail 63913 invoked by uid 500); 2 Apr 2008 04:04:51 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 63876 invoked by uid 500); 2 Apr 2008 04:04:51 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 63867 invoked by uid 99); 2 Apr 2008 04:04:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 21:04:51 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 04:03:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JguCx-0000tI-LE for solr-user@lucene.apache.org; Tue, 01 Apr 2008 21:04:19 -0700 Message-ID: <16441192.post@talk.nabble.com> Date: Tue, 1 Apr 2008 21:04:19 -0700 (PDT) From: Vinci To: solr-user@lucene.apache.org Subject: Re: Multiple unique field? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: vinci.wong@polyu.edu.hk References: <16367339.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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.