Skip to content

Commit cdc94e4

Browse files
committed
Updated crawler script
* added index optimzation ( disk space) Signed-off-by: smarcet <smarcet@gmail.com>
1 parent a3210f9 commit cdc94e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

conf/nutch/crawler.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ for i in $(seq ${ITERATIONS}); do
7474
NUTCH_CONF_DIR=$CONF_DIR $NUTCH_HOME/runtime/local/bin/nutch solrdedup http://localhost:$SOLR_PORT/solr/$CORE
7575
done
7676

77-
echo "Running suggetion index rebuild"
77+
echo "Running index optimization"
78+
79+
curl "http://localhost:$SOLR_PORT/solr/$CORE/update?optimize=true=true&wt=json"
80+
81+
echo "Running suggestion index rebuild"
7882

7983
curl "http://localhost:$SOLR_PORT/solr/$CORE/suggest?suggest.build=true&wt=json"
8084

0 commit comments

Comments
 (0)