Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2853 bin/nutch: remove deprecated commands solrindex, solrdedup, solrclean

Sebastian Nagela74b57b90409
diff --git a/src/bin/nutch b/src/bin/nutch
index 5b999fa6f..561c79e77 100755
--- a/src/bin/nutch
+++ b/src/bin/nutch
@@ -81,9 +81,6 @@ if [ $# = 0 ]; then
echo " dedup deduplicate entries in the crawldb and give them a special status"
echo " dump exports crawled data from segments into files"
echo " commoncrawldump exports crawled data from segments into common crawl data format encoded as CBOR"
- echo " solrindex run the solr indexer on parsed segments and linkdb - DEPRECATED use the index command instead"
- echo " solrdedup remove duplicates from solr - DEPRECATED use the dedup command instead"
- echo " solrclean remove HTTP 301 and 404 documents from solr - DEPRECATED use the clean command instead"
echo " clean remove HTTP 301 and 404 documents and duplicates from indexing backends configured via plugins"
echo " parsechecker check the parser for a given url"
echo " indexchecker check the indexing filters for a given url"
@@ -253,19 +250,14 @@ elif [ "$COMMAND" = "dump" ] ; then
CLASS=org.apache.nutch.tools.FileDumper
elif [ "$COMMAND" = "commoncrawldump" ] ; then
CLASS=org.apache.nutch.tools.CommonCrawlDataDumper
-elif [ "$COMMAND" = "solrindex" ] ; then
- CLASS="org.apache.nutch.indexer.IndexingJob -D solr.server.url=$1"
- shift
+elif [ "$COMMAND" = "solrindex" ] || [ "$COMMAND" = "solrdedup" ] || [ "$COMMAND" = "solrclean" ]; then
+ REPLACEMENT="${COMMAND#solr}"
+ echo "The command $COMMAND was replaced by the command $REPLACEMENT"
+ exit -1
elif [ "$COMMAND" = "index" ] ; then
CLASS=org.apache.nutch.indexer.IndexingJob
-elif [ "$COMMAND" = "solrdedup" ] ; then
- echo "Command $COMMAND is deprecated, please use dedup instead"
- exit -1
elif [ "$COMMAND" = "dedup" ] ; then
CLASS=org.apache.nutch.crawl.DeduplicationJob
-elif [ "$COMMAND" = "solrclean" ] ; then
- CLASS="org.apache.nutch.indexer.CleaningJob -D solr.server.url=$2 $1"
- shift; shift
elif [ "$COMMAND" = "clean" ] ; then
CLASS=org.apache.nutch.indexer.CleaningJob
elif [ "$COMMAND" = "parsechecker" ] ; then