Thanks. I didn't think about such simple solution:)

Mordo, Aviran (EXP N-NANNATEK) wrote:

Why don't you just add the new information directly to the main index ?
As long as you don't get a new IndexReader you should be able to access
the old information. Once your indexing and deletion is done just get a
new IndexReader instance to access the new documents.

Aviran
http://www.aviransplace.com

-----Original Message-----
From: Volodymyr Bychkoviak [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 1:50 PM
To: java-user@lucene.apache.org
Subject: merging indexes together

Hello All.

In my program I index new information to temporary dir and after then I
delete outdated information from main index and add new information by
calling indexWriter.addIndexes() method. This works fine when doc number
is relatively small but when index size grows, every call to addIndexes
can take very long. (NOTE: new information is ONLY part of all index)

The reason I'm using this approach is that I want old information to be
available during indexing new information and then switch as fast as I
can to new information.

current index 336Mb / 1100000 Docs. and growing...
current time to merge indexes is about 5min.

Any ideas how to optimize this?

--
regards,
Volodymyr Bychkoviak


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



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



--
regards,
Volodymyr Bychkoviak


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

Reply via email to