1. 在eclipse 中 部署 ,svn
2. jar ,自己编译,部署到服务器,运行 ok.
3. 拷贝creativecomoon plugin 目录。
修改 mytestplugin
编译 ,jar ,拷贝到服务器
<property>
<name>http.agent.name</name>
<value>aliali</value>
</property>
<property>
<name>http.robots.agents</name>
<value>aliali,*</value>
<description>The agent strings we'll look for in robots.txt files,
comma-separated, in decreasing order of precedence. You should
put the value of http.agent.name as the first agent name, and keep the
default * at the end of the list. E.g.: BlurflDev,Blurfl,*
</description>
</property>
4.加载 plugins
<property>
<name>plugin.includes</name>
<value>nutch-extensionpoints|protocol-http|urlfilter-regex|mytestplugin|parse-(text|html|js)|index-basic|query-(basic|site|url)|s
ummary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)
</value>
</property>
<property>
<name>urlfilter.regex.file</name>
<value>regex-urlfilter.txt</value>
<description>Name of file on CLASSPATH containing regular expressions
used by urlfilter-regex (RegexURLFilter) plugin.</description>
5. ok, plugin ok.
至此,可以调试和修改 nutch.
6. 部署 war,
copy nutch*.war 到 webapps.
修改 classes/nutch-site.xml , searcher.dir
7. luke index , ok ,search is ok.
2. jar ,自己编译,部署到服务器,运行 ok.
3. 拷贝creativecomoon plugin 目录。
修改 mytestplugin
编译 ,jar ,拷贝到服务器
<property>
<name>http.agent.name</name>
<value>aliali</value>
</property>
<property>
<name>http.robots.agents</name>
<value>aliali,*</value>
<description>The agent strings we'll look for in robots.txt files,
comma-separated, in decreasing order of precedence. You should
put the value of http.agent.name as the first agent name, and keep the
default * at the end of the list. E.g.: BlurflDev,Blurfl,*
</description>
</property>
4.加载 plugins
<property>
<name>plugin.includes</name>
<value>nutch-extensionpoints|protocol-http|urlfilter-regex|mytestplugin|parse-(text|html|js)|index-basic|query-(basic|site|url)|s
ummary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)
</value>
</property>
<property>
<name>urlfilter.regex.file</name>
<value>regex-urlfilter.txt</value>
<description>Name of file on CLASSPATH containing regular expressions
used by urlfilter-regex (RegexURLFilter) plugin.</description>
5. ok, plugin ok.
至此,可以调试和修改 nutch.
6. 部署 war,
copy nutch*.war 到 webapps.
修改 classes/nutch-site.xml , searcher.dir
7. luke index , ok ,search is ok.