Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 25640 invoked from network); 2 Mar 2009 14:14:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 14:14:42 -0000 Received: (qmail 15353 invoked by uid 500); 2 Mar 2009 14:14:36 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 15304 invoked by uid 500); 2 Mar 2009 14:14:36 -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 15295 invoked by uid 99); 2 Mar 2009 14:14:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 06:14:36 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.162.181] (HELO el-out-1112.google.com) (209.85.162.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 14:14:26 +0000 Received: by el-out-1112.google.com with SMTP id s27so1727642ele.14 for ; Mon, 02 Mar 2009 06:14:04 -0800 (PST) Received: by 10.90.104.20 with SMTP id b20mr381349agc.100.1236003243667; Mon, 02 Mar 2009 06:14:03 -0800 (PST) Received: from ?10.17.4.4? (pool-173-48-164-75.bstnma.fios.verizon.net [173.48.164.75]) by mx.google.com with ESMTPS id 36sm13261947aga.29.2009.03.02.06.14.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Mar 2009 06:14:02 -0800 (PST) Message-Id: <8AC3636A-8CA9-4BB3-8357-29B9A5A888DC@mikemccandless.com> From: Michael McCandless To: java-dev@lucene.apache.org In-Reply-To: <2ffb6d060903020557v7787ceddu55c98848cf46cad@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: segments.gen file Date: Mon, 2 Mar 2009 09:13:58 -0500 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> <2ffb6d060903020557v7787ceddu55c98848cf46cad@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Super, thanks! Mike Danil =C5=A2ORIN wrote: > 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. Can you open a Jira issue? Thanks. >> >> 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 =20= >>> 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 =20= >>> 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 =20 >>>>> 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". =20 >>>>>>> The reason >>>>>>> why >>>>>>> I started this thread about the segments.gen file was that in =20= >>>>>>> our >>>>>>> project we >>>>>>> sometimes need to rollback to a previous commit-point (using =20 >>>>>>> Lucene >>>>>>> 2.4.0) >>>>>>> that we keep around with the SnapshotDeletionPolicy. To get =20 >>>>>>> rid of the >>>>>>> newest commit-point we simply delete the most recent segments =20= >>>>>>> file. >>>>>>> But >>>>>>> then >>>>>>> we also have to delete the segments.gen file, otherwise Lucene =20= >>>>>>> will >>>>>>> read >>>>>>> the >>>>>>> generation from it and try to find the segments file we =20 >>>>>>> deleted. Then >>>>>>> Lucene >>>>>>> will recreate the segments.gen file. This just made me think =20 >>>>>>> that this >>>>>>> is >>>>>>> not very clean (deleting and recreating the segments.gen) =20 >>>>>>> especially >>>>>>> because >>>>>>> we use a local FS and don't even need the .gen file. >>>>>> >>>>>> Ahh... OK. In trunk/2.9, you can explicitly open an =20 >>>>>> 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org