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 79E706A84 for ; Sun, 10 Jul 2011 04:13:06 +0000 (UTC) Received: (qmail 50713 invoked by uid 500); 10 Jul 2011 04:13:06 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 50638 invoked by uid 500); 10 Jul 2011 04:12:58 -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 50617 invoked by uid 99); 10 Jul 2011 04:12:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2011 04:12:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.116.39.62] (HELO rectangular.com) (68.116.39.62) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2011 04:12:44 +0000 Received: from marvin by rectangular.com with local (Exim 4.69) (envelope-from ) id 1QflBx-0006Y9-2o for lucy-user@incubator.apache.org; Sat, 09 Jul 2011 21:00:25 -0700 Date: Sat, 9 Jul 2011 21:00:25 -0700 From: Marvin Humphrey To: lucy-user@incubator.apache.org Message-ID: <20110710040025.GB25108@rectangular.com> References: <4E14C96A.7080806@unitedknowledge.nl> <20110706223133.GA10238@rectangular.com> <4E14F142.7030804@unitedknowledge.nl> <20110706234747.GB10488@rectangular.com> <4E16C922.6030201@unitedknowledge.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E16C922.6030201@unitedknowledge.nl> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [lucy-user] index and search words separated by hyphens On Fri, Jul 08, 2011 at 11:08:50AM +0200, arjan wrote: > I used an external script to see if the new message was in Kino in the > right way. In the external script, the object was freshly instantiated. > In the main program however, it was not, and because - as the > documentation says - "IndexSearchers operate against a single > point-in-time view or Snapshot of the index", I searched the Index as it > was before my changes. Now I added a call to $env->clear_searcher to > reinstantiate the searcher and it works. Thank you for making the effort to write up an accurate post-mortem. The point-in-time view of the index is a sane and appropriate interface for Searcher. If Searcher updated itself, then users would have to wrap transaction guards around every non-atomic sequence of method calls. Given Lucy's highly modularized design (where Searchers are often held as member variables within other components), that's impractical. Nevertheless, you aren't the first to be tripped up by that behavior and you won't be the last. At some point we should create some "troubleshooting" documentation, and verifying that the Searcher has been properly refreshed will definitely be on the checklist. Best, Marvin Humphrey