In the plugin.xml file bellow, try changing:

<implementation id="URLQueryFilter"
                      class="
org.apache.nutch.searcher.quiew.QuiewQueryFilter"
                      fields="url"/>

To:

<implementation id="URLQueryFilter"
                      class="
org.apache.nutch.searcher.quiew.QuiewQueryFilter"
                      fields="quiewId"/>

        That should tell the searcher to use your plugin to search
against the quiewId field.  If that still doesn't work quite the way you
want try setting fields to DEFAULT.  That should cause it to run all
queries through your filter even if quiewId:[term] isn't specified.

        I ran into the same issue myself and I'm still trying to fully
understand how the filters end up getting called.

Jake.

---------------- Query plugin ----------------------
<?xml version="1.0" encoding="UTF-8"?>
<plugin
   id="query-quiew"
   name="Quiew Query Filter"
   version="1.0.0"
   provider-name="nutch.org">

   <extension-point
      id="org.apache.nutch.searcher.QueryFilter"
      name="Nutch Query Filter"/>

   <runtime>
      <library name="query-quiew.jar">
         <export name="*"/>
      </library>
   </runtime>


   <extension id="org.apache.nutch.searcher.quiew.QuiewQueryFilter"
              name="Nutch URL Query Filter"
              point="org.apache.nutch.searcher.QueryFilter">
      <implementation id="URLQueryFilter"
                      class="
org.apache.nutch.searcher.quiew.QuiewQueryFilter"
                      fields="url"/>
   </extension>

</plugin>




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to