Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92F391094D for ; Tue, 10 Sep 2013 22:55:14 +0000 (UTC) Received: (qmail 10898 invoked by uid 500); 10 Sep 2013 22:55:11 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 10846 invoked by uid 500); 10 Sep 2013 22:55:11 -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 10838 invoked by uid 99); 10 Sep 2013 22:55:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 22:55:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 22:55:04 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp13so8322225pab.7 for ; Tue, 10 Sep 2013 15:54:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=OeI5ZzrnH03gM9kGJ57jsjRUe5A2PAHWzISmf3cg+Xk=; b=MKqZ9kcu5YckqmGoTAO4QxZ7ie/+zyKkVmykifPzhdFxWzBWs4XgXVZ6cwC2G4Sp95 qfEKr/6PRsuZnRkTfmRJhbnSoVwbulJSTA6jB2DtdHQ3QFlV5kz7Pf7apMUB+i4PsK8P sqpCzyTkPjK0CjdQYtSQM2T5EVkyMo+GXFTEJblrztY1VEXycDkSmFyK/Lb8O+dsHawp ASYPm5lBuWppwI0lp/kC3pK3vhxcErbc1Yhbo3yClsF2e/MrvtHthIpLnhOGHOncKuA3 83lo62mXKg5AkUE87Z2H52a1wdb5NDP+d3HtFvtQyTeVJnlExi5G35gdBRW/GiRRmQAz AeWQ== X-Gm-Message-State: ALoCoQnyptDfzq+B6dwUeWMse/uKm+jlvbiypgKr+jXfEHi9E0mnOvppgSpW+foTAZtTUbHaPXsg X-Received: by 10.68.50.165 with SMTP id d5mr11713688pbo.162.1378853664150; Tue, 10 Sep 2013 15:54:24 -0700 (PDT) Received: from frisbee.local (c-68-63-180-159.hsd1.az.comcast.net. [68.63.180.159]) by mx.google.com with ESMTPSA id uw6sm25463668pbc.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 15:54:23 -0700 (PDT) Date: Tue, 10 Sep 2013 15:54:20 -0700 (MST) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: Restrict Parsing duplicate file in Solr In-Reply-To: <1378789638769-4089023.post@n3.nabble.com> Message-ID: References: <1378441487951-4088471.post@n3.nabble.com> <1378789638769-4089023.post@n3.nabble.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Thanks for the response. My requirement is make sure I detect file if its : already indexed , neglect instead of replacing the existing one. A trivial way to make Solr reject (ie: actually generate an error, not just ignore) a document that already exists is to use the Optimistic Concurrency update features, with an artificial version of "1". The docs aren't very good about this feature, but it's all spelled out here (and in the links from that issue)... https://issues.apache.org/jira/browse/SOLR-5193 -Hoss