Take a look at org.apache.lucene.index.CheckIndex.  That displays the
versions of the segment files.  Note the plurals - that's a
complication you may need to deal with.

Or read|store whatever you want with
IndexWriter.get|setCommitData(...).  You can get the currently running
version via LucenePackage.get().

Or upgrade everything to the latest release, or at least a consistent release.

--
Ian.


On Mon, May 13, 2013 at 1:35 PM, Ramprakash Ramamoorthy
<youngestachie...@gmail.com> wrote:
> Team,
>
>        We have three indices by three different versions of lucene(2.3,3.6
> and 4.1). Is there anyway I can identify which index belongs to which
> version somehow programatically? Thanks in advance.
>
> --
> With Thanks and Regards,
> Ramprakash Ramamoorthy,
> India.
> +91 9626975420

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to