lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@gmail.com>
Subject Re: IndexWriter.addIndexes with LeafReader parameter
Date Tue, 12 Jan 2016 19:00:52 GMT
You can addIndexes(Directory... dirs) -- then you don't have to deal
with CodecReader?

Dawid

On Tue, Jan 12, 2016 at 4:43 PM, Manner RĂ³bert <rmanni@gmail.com> wrote:
> Hi,
>
> we have used lucene 4.7.0 before, we are on the way to upgrade to 5.4.0.
>
> The problem I have is that writer.addIndexes now needs CodecReader and does
> not accept a basic LeafReader what we have.
>
> Is there any efficient way to work around that? How would you do it? Query
> the documents and addDocument one by one? Or can I somehow wrap my
> LeafReader in a CodecReader? What is the reason to require CodecReader and
> what is that for? Its documentation seems to be missing, and I could not
> find anything on the net either.
>
> Thanks for any pointers in advance,
>
> Robi

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