需要将配置到tomcat下的nutch-1.2程序中的WEB-INF/classes中的nutch-sites.xml配置文件中,添加负责控制高亮显示个数和摘要长度的属性就可以了
下面将摘要的高亮显示词组个数设置为10,将摘要的长度设置为100
<property>
<name>searcher.summary.context</name>
<value>10</value>
<description>
The number of context terms to display preceding and following
matching terms in a hit summary.
</description>
</property>
<property>
<name>searcher.summary.length</name>
<value>100</value>
<description>
The total number of terms to display in a hit summary.
</description>
</property>