Return-Path: X-Original-To: apmail-incubator-lucy-user-archive@www.apache.org Delivered-To: apmail-incubator-lucy-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 7BA0A9CFD for ; Wed, 2 Nov 2011 15:23:41 +0000 (UTC) Received: (qmail 95122 invoked by uid 500); 2 Nov 2011 15:23:41 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 95100 invoked by uid 500); 2 Nov 2011 15:23:41 -0000 Mailing-List: contact lucy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-user@incubator.apache.org Delivered-To: mailing list lucy-user@incubator.apache.org Received: (qmail 95092 invoked by uid 99); 2 Nov 2011 15:23:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 15:23:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gorankent@gmail.com designates 209.85.212.47 as permitted sender) Received: from [209.85.212.47] (HELO mail-vw0-f47.google.com) (209.85.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 15:23:34 +0000 Received: by vwe42 with SMTP id 42so255939vwe.6 for ; Wed, 02 Nov 2011 08:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=rZRaSayvCEG4Zy2v21O3wL4xjKZYGXKykrJaeNCJGQ0=; b=wSLQcAT+lpbggNvbXeE+Y2RdyVECFcy5c6zO0cWt87rxxU8torj2dEpJyv1IR0ppn7 Lel8bGys+Y+VWiGMWwo82zxAWOnFypn1ZtRWTOBE4rtchLThTLfxdocQemwmC5Mr6qXH 4KBpG3kzweKxJ73HBcyKzkQZR0k8VBzk2m9ck= MIME-Version: 1.0 Received: by 10.52.33.84 with SMTP id p20mr5022766vdi.32.1320247393744; Wed, 02 Nov 2011 08:23:13 -0700 (PDT) Received: by 10.52.116.33 with HTTP; Wed, 2 Nov 2011 08:23:13 -0700 (PDT) Date: Wed, 2 Nov 2011 17:23:13 +0200 Message-ID: From: goran kent To: lucy-user Content-Type: text/plain; charset=ISO-8859-1 Subject: [lucy-user] Index state during merges Hi, If the following is true, then it will simplify my efforts: during a merge of indexes to a $target, and an error occurs -- for whatever reason (typically because of a broken source index) -- is the $target buggered or still in a safe state? I'm jumping through hoops preserving the sanity of target indexes (which involves a cp of $target to a temp, merge subindexes to temp, if success then mv temp to target). I'm doing all this cp/mv'ing because of past experiences when trying to handle errors during merging. If I could perform merging on a single target (a target which is also actively being searched on, btw, which is another reason I need to simplify this process and get rid of the intermediate step of a $temp target), and know that if an error occurs the target will always be sane, it would help tremendously. Put another way: foreach $subindex { $bigindex->add_index($subindex); } $bigindex->commit if one of those subindexes is broken, will it break the entire bigindex? or does Lucy work on temp files and if an error occurs the bigindex is not harmed (ie, any changes are rolled back)? I know I could test this theory, I just haven't had the time and would like to draw on MH's knowledge. Thanks