lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: [VOTE] Release PyLucene 2.9.0-1
Date Tue, 13 Oct 2009 20:09:54 GMT
OK thanks Andi.  I was missing that initVM is needed even to populate
the statics, but that makes total sense.

Mike

On Tue, Oct 13, 2009 at 2:28 PM, Andi Vajda <vajda@apache.org> wrote:
>
> 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