lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <trej...@trypticon.org>
Subject Re: Reading a v2 index in v4
Date Mon, 09 Jun 2014 12:53:59 GMT
On Mon, Jun 9, 2014 at 10:17 PM, Adrien Grand <jpountz@gmail.com> wrote:
> Hi,
>
> It is not possible to read 2.x indices from Lucene 4, even with a
> custom codec. For instance, Lucene 4 needs to hook into
> SegmentInfos.read to detect old 3.x indices and force the use of the
> Lucene3x codec since these indices don't expose what codec has been
> used to write them.

Rats. I was wondering how the Lucene3x codec worked, but now I know. I
was hoping codecs were going to be more flexible than that, but it
looks like nobody considered the possibility that I might want to pass
a Codec into my IndexReader. :(

TX

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