lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hu Jing <huj....@gmail.com>
Subject Re: how to forcemerge a index library with many segmens to another dir?
Date Fri, 21 Dec 2012 00:51:50 GMT
Of couse, I don't want a copy of the merged index on another disk.

I want the merged index is written in another disk  directly and don't need
to copy it again.

The purpose in doing so is just for less disk operation and disk r-w
operation separately.
2012/12/20 Ian Lea <ian.lea@gmail.com>

> So you want a copy of the merged index on another disk?  You could
> just copy it, before or after the merge, your choice. Or create the
> new index with an IndexWriter and call one of the addIndexes()
> methods.  From the javadocs they sound to have different merge
> effects.  Try it out and see what happens.
>
>
> --
> Ian.
>
>
> On Thu, Dec 20, 2012 at 1:24 AM, Hu Jing <huj.nju@gmail.com> wrote:
> > Now, i have a index library with 100 segments.
> > Using forcemerge function can merge all segments into a segment.
> > But I also want the newly generated index library which is written in
> > another disk.
> > Doing this just for Reading and writing disk separately.
> > How to implement this?
> > Thanks very much.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message