我有以下命令,我已将它们组合在一起。它运行Nutch并将结果发送给Solr。我已经读过这些与我想用来以编程方式运行的Java方法相匹配。
这些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/*
由于