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..

Reply via email to