From java-dev-return-31073-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Mon Mar 02 13:58:21 2009 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 13560 invoked from network); 2 Mar 2009 13:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 13:58:21 -0000 Received: (qmail 98026 invoked by uid 500); 2 Mar 2009 13:58:14 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 97970 invoked by uid 500); 2 Mar 2009 13:58:14 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 97961 invoked by uid 99); 2 Mar 2009 13:58:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 05:58:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torindan@gmail.com designates 209.85.220.168 as permitted sender) Received: from [209.85.220.168] (HELO mail-fx0-f168.google.com) (209.85.220.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 13:58:07 +0000 Received: by fxm12 with SMTP id 12so2329587fxm.5 for ; Mon, 02 Mar 2009 05:57:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2b3VBQZp+MBCrUj/7qcHNFzt4jgnv10qb/P5gOq4r6g=; b=agV0l1SXQdtrWjkZYA/IiS2jQNvwYK4/1D7LwECyOQPgGWWWiD8/eQRLCfmNiWCTdl o7PlXfD+eLgsfFcQs1M0OmHRf5qzOaTBnjN731eR3Yn8q8PB7/6nk7mU+hFqg6RCquRO N7AIuvjOzxf1VSyhK4o7Eumsz/DJGCz3pwgUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dMTl+BcMHS1GD1sojSCrlyrcrZ/20p/fRlUsnh2yZoIf5eTbuIf8Garn2ZyCcTzCn0 zXV4FMIcgO06XyxjbVbCeMljy5dDSKhEcsq5TzgEy/Otl87jWpeO1wdI0swFrcezCM4s AFZ+Bxb7QjwMSsSZFH1vwbC8yTI6MFv4BEe3c= MIME-Version: 1.0 Received: by 10.181.159.11 with SMTP id l11mr2121910bko.186.1236002266270; Mon, 02 Mar 2009 05:57:46 -0800 (PST) In-Reply-To: <9795CA74-B7C4-4E6A-9F78-B98CED290845@mikemccandless.com> References: <49A354DC.30907@gmail.com> <3304BABA-2441-4369-BF53-0FE7FF593B5B@mikemccandless.com> <49A6DEC9.7050600@gmail.com> <92C633F7-0DF2-449B-B30B-3826A017C1D1@mikemccandless.com> <49A82DAD.5060103@gmail.com> <691FBA1C-69E8-4B9C-A9AE-97D00E3DBA34@mikemccandless.com> <2ffb6d060903012342h177c67eage4541637028e4ad9@mail.gmail.com> <2ffb6d060903020316o548a91dfodb008c0b3c2a2e11@mail.gmail.com> <9795CA74-B7C4-4E6A-9F78-B98CED290845@mikemccandless.com> Date: Mon, 2 Mar 2009 15:57:46 +0200 Message-ID: <2ffb6d060903020557v7787ceddu55c98848cf46cad@mail.gmail.com> Subject: Re: segments.gen file From: =?UTF-8?B?RGFuaWwgxaJPUklO?= To: java-dev@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/jira/browse/LUCENE-1551 On Mon, Mar 2, 2009 at 13:40, Michael McCandless wrote: > > Ahh good point, that is missing. =C2=A0Can you open a Jira issue? =C2=A0T= hanks. > > Mike > > Danil =C5=A2ORIN wrote: > >> I'm more interested in reopen(IndexCommit) so I could have full >> benefits of LUCENE-1483 (faster open, warm caches, less GC and so on) >> but on specific commit point. >> >> I'm not sure it's possible in current trunk, and if we have >> open(IndexCommit) & company, maybe we should also have similar set of >> methods for reopen? >> >> On Mon, Mar 2, 2009 at 12:12, Michael McCandless >> wrote: >>> >>> This is already available, as of 2.4. >>> >>> Mike >>> >>> Danil =C5=A2ORIN wrote: >>> >>>> What about opening IndexReader/Searcher on certain commit point? >>>> Will it be implemented in 2.9? >>>> >>>> The use-case is similar to the one Michael Busch described, only I >>>> would like to open (or reopen) a searcher on specific commit point. >>>> >>>> >>>> On Fri, Feb 27, 2009 at 20:31, Michael McCandless >>>> wrote: >>>>> >>>>> Michael Busch wrote: >>>>> >>>>>> Actually I personally don't need Lucene to be "write once". The reas= on >>>>>> why >>>>>> I started this thread about the segments.gen file was that in our >>>>>> project we >>>>>> sometimes need to rollback to a previous commit-point (using Lucene >>>>>> 2.4.0) >>>>>> that we keep around with the SnapshotDeletionPolicy. To get rid of t= he >>>>>> newest commit-point we simply delete the most recent segments file. >>>>>> But >>>>>> then >>>>>> we also have to delete the segments.gen file, otherwise Lucene will >>>>>> read >>>>>> the >>>>>> generation from it and try to find the segments file we deleted. The= n >>>>>> Lucene >>>>>> will recreate the segments.gen file. This just made me think that th= is >>>>>> is >>>>>> not very clean (deleting and recreating the segments.gen) especially >>>>>> because >>>>>> we use a local FS and don't even need the .gen file. >>>>> >>>>> Ahh... OK. =C2=A0In trunk/2.9, you can explicitly open an IndexWriter= on a >>>>> prior >>>>> commit point, which will take care of the gen file for you. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >>>> For additional commands, e-mail: java-dev-help@lucene.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-dev-help@lucene.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-dev-help@lucene.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org