The original question was: can I update the indexes without restarting
Tomcat.
The original answer was: crawl in a separate directory and use "mergesegs"
to merge the new with the old.
It appears to me that this doesn't really answer the question. The
"mergesegs" command takes several segments and writes all the information to
just one. I can create new segments all I want, I only run into problems
with Tomcat when I'm trying to create indexes. When I try to create a new
index, I get this stack trace. This shows that the index cannot be written.
When I stop Tomcat, it completes successfully. Is there any way to add new
content to the database while Tomcat is running? Is there some other index
merger that doesn't have this problem?
Exception in thread "main" java.io.IOException: Cannot delete _0.f0
at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:195)
at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:179)
at
org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:151)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:237)
at org.apache.nutch.indexer.IndexMerger.merge(IndexMerger.java:92)
at com.gd.wbi.NutchMgr.crawl(NutchMgr.java:308)
at com.gd.wbi.NutchMgr.main(NutchMgr.java:118)
Thanks,
Steve Betts
[EMAIL PROTECTED]
937-477-1797