Hi,

I found the script below while browsing for a solution, will this help
to keep my index current and my application aware of the updates, 
without taking the application offline ?

My plan is to make this script run periodically as a cron job.

----- begin script ------

#!/bin/bash

bin/nutch generate db segments -topN 100
s=`ls -d segments/2* | tail -1`
echo Segment is $s
bin/nutch fetch $s
bin/nutch updatedb db $s
bin/nutch analyze db 2
bin/nutch index $s
bin/nutch dedup segments tmpfile


----- end script --------

Reply via email to