As of 2.9, org.apache.lucene.util.Constants.LUCENE_VERSION is a good
way to get this.
That constant is set by first looking at the implementation version,
and then making sure the version Lucene thinks it is (2.9 on trunk
now) is contained in the resulting string. It also takes care of a
null imp
Exactly. Thanks.
-Original Message-
From: João Silva [mailto:galaio.si...@gmail.com]
Sent: Tuesday, June 16, 2009 4:47 PM
To: java-user@lucene.apache.org
Subject: Re: Determining lucene version programmatically
hi ssmith,
is this what you need?
LucenePackage.get
hi ssmith,
is this what you need?
LucenePackage.get().getImplementationVersion();
cheers,
João
On Tue, Jun 16, 2009 at 11:36 PM, Scott Smith wrote:
> Is there any way to programmatically determine the version of lucene
> being loaded?
>
>
>
>
--
Cumprimentos,
João Carlos Galaio da Silva