Hi Jeff,

>-----Original Message-----
>From: jeff [mailto:[email protected]]
>Sent: Tuesday, July 13, 2010 4:22 PM
>To: [email protected]
>Subject: More question about plugin entry point
>
>Hi,
>
>I am looking at the plugin.xml under $nutch_home\src\plugin\query-site\,
>and notice the following code:
>
><plugin
>   id="query-site"
>   name="Site Query Filter"
>   version="1.0.0"
>   provider-name="nutch.org">
>
>   <runtime>
>      <library name="query-site.jar">
>         <export name="*"/>
>      </library>
>   </runtime>
>
>   <requires>
>      <import plugin="nutch-extensionpoints"/>
>   </requires>
>
>   <extension id="org.apache.nutch.searcher.site.SiteQueryFilter"
>              name="Nutch Site Query Filter"
>              point="org.apache.nutch.searcher.QueryFilter">
>      <implementation id="SiteQueryFilter"
>
>class="org.apache.nutch.searcher.site.SiteQueryFilter">
>        <parameter name="raw-fields" value="site"/>
>      </implementation>
>
>   </extension>
>
></plugin>
>
>
>For this plugin to work, there must be some entry point in some .xml
>file such that nutch will know where to locate this SiteQueryFilter
>class when the filter function within
>org.apache.nutch.searcher.QueryFilter is called. However, I searched all
>the workspace and tried to find some entry and had no luck as of now.

Please see plugins/nutch-extensionpoints/plugin.xml

Regards,

Arkadi

>
>Does any of you know the mechanism that would make this SiteQueryFilter
>plugin to work?
>
>Thanks,
>Jeff

Reply via email to