Thank you for the response.

I wasn't very clear in my original note. I just want to make sure that I
can merge indexes created  from differerent platforms/different OSes without
problem.  So I understand from the respond that this can be done.

Thanks





On 6/27/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:


On Jun 27, 2006, at 2:02 PM, Daniel Naber wrote:

> On Dienstag 27 Juni 2006 17:23, Beady Geraghty wrote:
>
>> I tried to look at the segments file, thinking that it points to the
>> various other
>> files in the index directory,
>
> Use IndexWriter.addIndexes() to merge two or more indexes.

Or use the IndexMergeTool as a command-line tool:

       http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/
miscellaneous/src/java/org/apache/lucene/misc/IndexMergeTool.java

It's in the lucene-misc-*.jar file, so you should be able to do this
(off the top of my head):

       java -cp lucene-misc.jar:lucene-core.jar IndexMergeTool
<mergedIndex> <index1> <index2> ....

Erik



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to