Re: Determining lucene version programmatically

2009-06-17 Thread Michael McCandless
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

RE: Determining lucene version programmatically

2009-06-16 Thread Scott Smith
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

Re: Determining lucene version programmatically

2009-06-16 Thread João Silva
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