lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: [VOTE] Release PyLucene 2.9.0-1
Date Tue, 13 Oct 2009 18:28:47 GMT

On Tue, 13 Oct 2009, Michael McCandless wrote:

> One question: how does one gain access to the public static constants
> Version.LUCENE_XX from oal.Version?

   >>> import lucene
   >>> lucene.initVM(lucene.CLASSPATH)
   <jcc.JCCEnv object at 0x1004730d8>
   >>> lucene.Version.LUCENE_CURRENT
   <Version: LUCENE_CURRENT>
   >>> lucene.Version.LUCENE_24
   <Version: LUCENE_24>
   >>> lucene.Version.LUCENE_CURRENT.onOrAfter(lucene.Version.LUCENE_29)
   True

And there is also this one, the version of Lucene compiled into PyLucene:
   >>> lucene.VERSION
   '2.9.0'

Andi..

Mime
View raw message