Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 45677 invoked from network); 12 Sep 2006 13:23:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 13:23:52 -0000 Received: (qmail 28582 invoked by uid 500); 12 Sep 2006 13:23:47 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 27995 invoked by uid 500); 12 Sep 2006 13:23:45 -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 27984 invoked by uid 99); 12 Sep 2006 13:23:45 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 06:23:45 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=tremerson@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=tremerson@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE,RCVD_BY_IP Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.237 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([66.249.82.237:3337] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 3D/70-02533-9E4B6054 for ; Tue, 12 Sep 2006 06:23:54 -0700 Received: by wx-out-0506.google.com with SMTP id s15so1846255wxc for ; Tue, 12 Sep 2006 06:23:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=k6oGT/8+Z73vs7tla2+hJ0ReXNFGc2MpaOmvzelg97R7ptLY20t4uFN4EJHJLN9TPy0NTfa4oACkiNgRpOmSDtOmURuom8qq7iGpGSCv3as7X2KYkYjhbB3/BrSV45VYXoHvJ4/UyefoxGkEI2qZchp38Pnipbn6dhNpJ8cC1/w= Received: by 10.70.92.14 with SMTP id p14mr8269318wxb; Tue, 12 Sep 2006 06:23:37 -0700 (PDT) Received: by 10.70.65.13 with HTTP; Tue, 12 Sep 2006 06:23:36 -0700 (PDT) Message-ID: Date: Tue, 12 Sep 2006 09:23:36 -0400 From: "Tom Emerson" To: java-user@lucene.apache.org Subject: Re: getCurrentVersion question In-Reply-To: <1cbd6f830609090913n26c89ea0l8d9e35ff5f74bf8e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_231231_14990469.1158067416989" References: <1cbd6f830609090913n26c89ea0l8d9e35ff5f74bf8e@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_231231_14990469.1158067416989 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline As far as I know there isn't a way to do this. What we do is add a "metadata" document to each index that includes the creation date, the user name of the creating user, and various other tidbits. This gets updated on incremental updates to the index as well. Easily done and makes it easy to query. On 9/9/06, Mag Gam wrote: > > Hi All, > > I am trying to get the exact date when my index was created. I am assuming > getCurrentVersion() is the right way of doing it. However, I am getting a > result something like this: 1157817833085 > > According to the API reference, > "Reads version number from segments files. The version number is > initialized > with a timestamp and then increased by one for each change of the index." > > So, to get the date of this, I should be doing something like this: > date=1157817833085-1; > > Any thoughts? > tia > > -- Tom Emerson tremerson@gmail.com http://www.dreamersrealm.net/~tree ------=_Part_231231_14990469.1158067416989--