Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8349298CE for ; Tue, 7 Feb 2012 21:05:07 +0000 (UTC) Received: (qmail 96083 invoked by uid 500); 7 Feb 2012 21:05:06 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 96020 invoked by uid 500); 7 Feb 2012 21:05:05 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 96013 invoked by uid 99); 7 Feb 2012 21:05:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 21:05:05 +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: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 21:04:59 +0000 Received: from VEGA (port-92-196-47-176.dynamic.qsc.de [92.196.47.176]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id F00E514AA131 for ; Tue, 7 Feb 2012 21:04:38 +0000 (UTC) From: "Uwe Schindler" To: References: In-Reply-To: Subject: RE: IndexReader.lastModified(reader.directory()) replacement? Date: Tue, 7 Feb 2012 22:05:05 +0100 Message-ID: <00c601cce5dc$2b053870$810fa950$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQGN/Rp6K7hZRzzAzccSTnwXYTYBfQH12i+RAf1o2dSWkCQAMA== Content-language: de Then thats what you need! ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Ryan McKinley [mailto:ryantxu@gmail.com] > Sent: Tuesday, February 07, 2012 9:57 PM > To: dev@lucene.apache.org > Subject: Re: IndexReader.lastModified(reader.directory()) replacement? > > On Tue, Feb 7, 2012 at 12:38 PM, Michael McCandless > wrote: > > You need to store this in the IndexCommit. > > > > Ie, when you commit, pass the Map userData that holds > > the timestamp (and anything else you want to store...). > > > > Or, use DR.getVersion or DR.getIndexCommit().getGeneration() as > > similar replacements. > > > > Can you describe how you were using IR.lastModified...? > > > > DR.getVersion() should work -- I just need a way to know if anythign has > changed. > > thanks > ryan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional > commands, e-mail: dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org