Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF36710AA2 for ; Wed, 22 Jan 2014 08:43:56 +0000 (UTC) Received: (qmail 38283 invoked by uid 500); 22 Jan 2014 08:43:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 37727 invoked by uid 500); 22 Jan 2014 08:43:53 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 37718 invoked by uid 99); 22 Jan 2014 08:43:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 08:43:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of serera@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 08:43:47 +0000 Received: by mail-we0-f175.google.com with SMTP id p61so65004wes.20 for ; Wed, 22 Jan 2014 00:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Edhk96muY7KYVlumkRDCoihGxS4vq87O4WRpMcIdVoE=; b=TK4tvT3zwyuh1ayguJAEUFGfKMTRUE64BJeTaBNa4mnqjJRSQqT01AIETlY+QDLcny R6T3JEgksnxv9TAzOK3Xuq/3WGho2ISki+b696LzjGsQjOISZzsknbH6MYZeSZjqnPnc CvIn61ywNlL2bqL8LeyUsee+lWWwYdrFpEWQgzj4VM7A7xNE+bcMxRWgFNFq14APrcOC vEWJg+LEqeDrnMYpQ8PeoAZcOhj82GrFbo8uX6jrqIOjNY1t9gNHwqT/giRDMgB0b8Rv ScfzgNl91JLYYJJpwqHMjJhE/iINceOTmnxVtQVgwSdzjbTQhExhk3qfFo/d/HLt5Dua nTEA== X-Received: by 10.180.21.244 with SMTP id y20mr18796709wie.37.1390380206171; Wed, 22 Jan 2014 00:43:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.238.68 with HTTP; Wed, 22 Jan 2014 00:43:06 -0800 (PST) In-Reply-To: <307B677D5F836C42A26FA43D08FA52EE0B37A1C5@EX10MBOX05.pnnl.gov> References: <307B677D5F836C42A26FA43D08FA52EE0B37A1C5@EX10MBOX05.pnnl.gov> From: Shai Erera Date: Wed, 22 Jan 2014 10:43:06 +0200 Message-ID: Subject: Re: updating docs when using SortedSetDocValuesFacetFields To: "java-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=047d7b874d824aa9ed04f08b1edf X-Virus-Checked: Checked by ClamAV on apache.org --047d7b874d824aa9ed04f08b1edf Content-Type: text/plain; charset=ISO-8859-1 Note that Lucene doesn't support general in-place document updates, and updating a document means first deleting it and adding it back. Therefore if you only intend to add/change few categories of an existing document, you have to fully re-index the document. This is not specific to categories but applies for any field that you add, except NumericDocValues fields which support in-place document updates since Lucene 4.6. Shai On Wed, Jan 22, 2014 at 1:15 AM, Rose, Stuart J wrote: > I'm using Lucene 4.4 with SortedSetDocValuesFacetFields and would like to > add and/or remove CategoryPaths for certain documents in the index. > > Basically, as additional sets of docs are added, the CategoryPaths for > some of the previously indexed documents need to changed. > > My current testing with using writer.updateDocument(docIdTerm, docFields) > seems to be generating some duplicates as there are more documents in the > index than expected. > > Is this a known issue with SortedSetDocValuesFacetFields and discouraged? > > Thanks! > Stuart > > --047d7b874d824aa9ed04f08b1edf--