Hi, Sure not. We created another IndexWriter class and modified its function addIndexes (if I remember the function name correctly) so it will not call to optimize at the end - that's all. Having unique segment names was necessary because the segment file name is used inside the file itself, and cannot be changed on the fly.
Best Regards, Andrew -- Andrew Schetinin C++ System Architect Phone: +972 8 643 6560, ext. 212 Email: mailto:[EMAIL PROTECTED] www.entopia.com Entopia Awards: "Visionary in Enterprise Search Magic Quadrant" Gartner Group "Best Search Engine" SIIA Codie Award "Trend Setting Product" KMWorld Magazine -----Original Message----- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 8:55 PM To: java-user@lucene.apache.org Subject: Re: Distributed Lucene.. Hi, Just curious about this: > We hacked :-) IndexWriter of Lucene to start all segment names with a > prefix unique for each small index part. > Then, when adding it to the actual index, we simply copy the new > segment to the folder with the other segments, and add it in such a > way so that the optimize() function cannot be called. > This way adding a new segment is very unintrusive for the searcher. > Optimization is scheduled to happen at night. You just copy your uniquely-named segments in the index directory and manually modify the "segments" file to list all copied segments? Thanks, Otis --------------------------------------------------------------------- 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]