lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Vasilev <ivasi...@sirma.bg>
Subject detect Lucene version
Date Fri, 08 Oct 2010 12:34:35 GMT
  Hi Guys,

Is there way to detect org.apache.lucene.util.Version of an index having 
IndexReader or just FSDirectory?
I know I can open segments file and read the proper bytes according to 
rules of creating it but is there more smart way to do this without 
using RandomAccessFile or something like this.
Actually I need just to know if index is pre Lucene 3_0 or 3_0 (or later).

Thanks,
Ivan

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