lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Determining lucene version programmatically
Date Wed, 17 Jun 2009 08:50:43 GMT
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 implementation version (returning 2.9).

Mike

On Tue, Jun 16, 2009 at 6:36 PM, Scott Smith<ssmith@mainstreamdata.com> wrote:
> Is there any way to programmatically determine the version of lucene
> being loaded?
>
>
>
>

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


Mime
View raw message