Apache Nutch is an extensible and scalable web crawler
NUTCH-2495: Use -deleteGone instead of clean job in crawl script while indexing
Sebastian Nagel7ebd35dc96b8
diff --git a/src/bin/crawl b/src/bin/crawlindex 331ee657d..9b77ce49e 100755--- a/src/bin/crawl+++ b/src/bin/crawl@@ -370,8 +370,8 @@ doecho "CrawlDB update"__bin_nutch updatedb "${commonOptions[@]}" "$CRAWL_PATH"/crawldb "$CRAWL_PATH"/segments/$SEGMENT-# note that the link inversion - indexing routine can be done within the main loop-# on a per segment basis+ # note that the link inversion - indexing routine can be done within the main loop+ # on a per segment basisecho "Link inversion"__bin_nutch invertlinks "${commonOptions[@]}" "$CRAWL_PATH"/linkdb "$CRAWL_PATH"/segments/$SEGMENT@@ -380,10 +380,7 @@ doif $INDEXFLAG; thenecho "Indexing $SEGMENT to index"- __bin_nutch index "${commonOptions[@]}" "$CRAWL_PATH"/crawldb -linkdb "$CRAWL_PATH"/linkdb "$CRAWL_PATH"/segments/$SEGMENT-- echo "Cleaning up index if possible"- __bin_nutch clean "${commonOptions[@]}" "$CRAWL_PATH"/crawldb+ __bin_nutch index "${commonOptions[@]}" "$CRAWL_PATH"/crawldb -linkdb "$CRAWL_PATH"/linkdb "$CRAWL_PATH"/segments/$SEGMENT -deleteGoneelseecho "Skipping indexing ..."fi