You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "K.A.Hussain Ali" <Hu...@photoninfotech.com> on 2005/12/08 17:08:04 UTC
How to refresh the application context - to use the merged index
HI all,
..while crawling using Nutch,i do segment merging and indexing ,but the search doesnt look into the new mergedsegment unless i restart the server..
Is there any way to refresh the application context to look into the new mergedindex without stopping the server ?
Is there anyway to do the above issue ?
Do Nutch provide any option to solve the same ?
Any help would greatly help.
Thanks in advance.
regards
-Hussain.
Re: [Nutch-general] How to refresh the application context - to use the merged index
Posted by "Peter A. Daly" <pe...@gmail.com>.
One method I have used in that past is to "touch
/[webpath...]/WEB-INF/web.xml". That requires a servlet container that
detects an updated timestamp on web.xml and restarts the app.
Another way is to add a customer wrapper around the jsp code that gets the
NutchBean to detect some sort of new index flag and create a new nutchbean.
I had memory problems with this method, and just touch the web.xml from my
crawl script.
-Pete
On 12/8/05, K.A.Hussain Ali <Hu...@photoninfotech.com> wrote:
>
> HI all,
>
> ..while crawling using Nutch,i do segment merging and indexing ,but the
> search doesnt look into the new mergedsegment unless i restart the server..
>
> Is there any way to refresh the application context to look into the new
> mergedindex without stopping the server ?
> Is there anyway to do the above issue ?
> Do Nutch provide any option to solve the same ?
>
> Any help would greatly help.
> Thanks in advance.
> regards
> -Hussain.
>