0
我有我已經批處理的以下命令。它運行Nutch並將結果發送給Solr。我已經讀過,這些匹配到我想用於以編程方式運行的Java方法。什麼java類與這些nutch命令相關聯?
這些匹配到哪些Java類?
bin/nutch inject crawl/crawldb urls(text file containing list of urls)
bin/nutch generate crawl/crawldb crawl/segments
export SEGMENT=crawl/segments/`ls -tr crawl/segments|tail -1`
bin/nutch fetch $SEGMENT -noParsing
bin/nutch parse $SEGMENT
bin/nutch updatedb crawl/crawldb $SEGMENT -filter -normalize
bin/nutch invertlinks crawl/linkdb -dir crawl/segments
bin/nutch solrindex http://localhost:8080/solr/ crawl/crawldb crawl/linkdb crawl/segments/*
感謝