lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Emerson" <>
Subject Re: getCurrentVersion question
Date Tue, 12 Sep 2006 13:23:36 GMT
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

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message