Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 47601 invoked from network); 11 Feb 2009 17:24:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 17:24:37 -0000 Received: (qmail 54596 invoked by uid 500); 11 Feb 2009 17:24:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 54566 invoked by uid 500); 11 Feb 2009 17:24:18 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 54475 invoked by uid 99); 11 Feb 2009 17:24:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 09:24:18 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of akshay.ukey@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 17:24:11 +0000 Received: by wa-out-1112.google.com with SMTP id m33so171001wag.5 for ; Wed, 11 Feb 2009 09:23:51 -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; bh=erzrYta/yE3Tt+8pJ+ktP5PrI4J8ZPoZVQrYUvAaTz8=; b=NTRwiYIGUAyD/omqQSTQ2zut9hoCHRRZWTfVhj0wfxvjnTR8NuqqGR4lPTigVBh9M2 k7ZqidsBtWc+dbWrAVcXPs+2eaTdMw3YM4JsZ86z63ByEyPmX5T0q3D9StlIziv/l00t +54oHjm/Mh4Fum/CbFCJxFVWtojrgLbtMD4ZI= 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; b=EFgyq3cA5Atu1qh75C6egHuZ5Fw965ecG2jwOoPGoSWM68XWex3veRh7oW80pNiz8P Npmw4NhtLhsroiphjRhWxJNrsKU9MXh2FbYj2feqBrLxBeT6m8KF9UX3VII9lyzxWo4C xCHwZZX8sUzQYD2dTEFnBL4Lcqvfck7m9E7oA= MIME-Version: 1.0 Received: by 10.114.159.17 with SMTP id h17mr5659018wae.124.1234373030973; Wed, 11 Feb 2009 09:23:50 -0800 (PST) In-Reply-To: <92368973-385E-41D0-8CFE-3800E1F27CBF@mikemccandless.com> References: <36a9c1920902110751k719c095agb80a1fd10ed6fe76@mail.gmail.com> <92368973-385E-41D0-8CFE-3800E1F27CBF@mikemccandless.com> Date: Wed, 11 Feb 2009 22:53:50 +0530 Message-ID: <36a9c1920902110923waf05bebr1a9d471f758f2333@mail.gmail.com> Subject: Re: Creation of index for the first time From: Akshay To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00163645883e0810c40462a7de83 X-Virus-Checked: Checked by ClamAV on apache.org --00163645883e0810c40462a7de83 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Is there a way, without the knowledge of how IndexWriter was used, by which we can say that an empty index currently open is a really fresh index created for the first time? Thanks. On Wed, Feb 11, 2009 at 9:54 PM, Michael McCandless < lucene@mikemccandless.com> wrote: > > If you create IndexWriter with create=true in a directory that has no > Lucene index, segments_1 is created. > > If you do the same, but in a directory that already has a Lucene index, > segments_(N+1) is created (where N was the last generation of the current > index in that directory). > > But... this is an internal detail to Lucene's index format and could change > in some future release. > > Mike > > > Akshay wrote: > > Hi List, >> >> How to find if an empty lucene index has been created for the very first >> time? Is the generation number 1 enough to determine this? >> >> -- >> Regards, >> Akshay K. Ukey. >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- Regards, Akshay K. Ukey. --00163645883e0810c40462a7de83--