Ratnesh,V2Solutions India wrote:
Hi,
when I deployed plugin, inside plugin directory of nutch in tomcat, I got
following warn messages??
one is java.lang.ArrayIndexOutOfBoundsException: 0
and another is RecommendedQueryFilter :names no fields.
(deleted the rest)
Hi, you should define the fields to be queried in the plugin's
plugin.xml file.
For example take a look at src/plugin/query-basic/plugin.xml :
<implementation id="BasicQueryFilter"
class="org.apache.nutch.searcher.basic.BasicQueryFilter">
<parameter name="fields" value="DEFAULT"/>
</implementation>
Here, the plugin declares to respond to DEFAULT field, you should add
the parameter to your plugin.xml file as :
<parameter name="fields" value="fieldname1 fieldname2 fieldname3"/>
where fieldname[1|2|3] is the name of the field that your query filter
builds the query upon.