Michael:

First, you should always do a merge externally and then add it to the server
-- can lead to unexpected results otherwise. While some have said that you
can do a touch on the web.xml file and that should restart tomcat, we have
not even able to see that reliably.

We added functionality that would reset the bean -- so that the Nutch bean
looks for the new segments when the bean is reset. We did this by writing a
servlet that is called whenever a new instance of the bean needs to be
created (which pings the servers for the new segments). On linux the
segments are still deletable, on Windows you may need to write a function
that goes and manually removes the segment name from the array ( I don't
have the code in front of me now -- if the above does not make sense, send
me an email and I'll get you the exact place to make the change next week).

There is another (easier) alternative if you're using a client/server config
and can invest in a load balance that sits between the web client and
segment server.

Hope this helps

CC-



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Sashnikov
Sent: Saturday, January 15, 2005 6:46 PM
To: [email protected]
Subject: [Nutch-dev] SegmentMergeTool without stopping Tomcat?

Is it possible to merge segments using SegmentMergeTool without stopping
Tomcat? It looks like if Tomcat runs it locks the old segment files and
SegmentMergeTool cannot delete them. As a result after merging the search
result includes both old and new versions of documents.

Config info Windows XP + Nutch 0.6 + Tomcat 5.5 + JDK 1.5.0.

Thanks




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE
limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to