Hi,

I've implemented the basic "intranet" search example using Nutch and
integrated it into a web site. However, when I try to re-index the site,
Tomcat has a lock on the index database files and the index fails. My
work-around is to:

1. Write the index to a temporary folder
2. Stop tomcat
3. Replace the real index folder with the temporary folder
4. Restart tomcat

This is obviously not ideal. I've noticed that the NutchBean stores an
instance of itself in the ServletContext. I've commented this out so a
new NutchBean gets created for every search, but still there is a lock.

Any ideas how to force NutchBean to release this lock without restarting
Tomcat?

Thanks much,
Matt

Reply via email to