You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Akanksha Baid <ba...@cs.wisc.edu> on 2007/07/18 21:55:11 UTC
lucene version?
Is there a way to test as to which version of Lucene was used to build
an index?
-Akanksha
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: lucene version?
Posted by Michael McCandless <lu...@mikemccandless.com>.
I don't think this is stored in the index.
I think the closest you can get is the "format" of the segments_N file
which changes every time the index file format changes. That at least
lets you narrow it down possibly to a single release if the file
format is changing frequently (eg it has in the past 2 releases).
There's no public API to read the format. You could instead make your
own class, in package org.apache.lucene.index, that implements a
method similar to how the SegmentInfos.readCurrentVersion(...) method
is implemented, but just returns the format instead.
Mike
"Akanksha Baid" <ba...@cs.wisc.edu> wrote:
> Is there a way to test as to which version of Lucene was used to build
> an index?
>
> -Akanksha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org