Ok. One more change...In your query filter change this:
public QuiewQueryFilter() {
super("quiewId");
To:
public QuiewQueryFilter() {
super("quiewId", 1f);
I also ran into an issue where not passing a boost value for the field
caused it not to work.
Jake.
-----Original Message-----
From: Enrico Triolo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 10:52 AM
To: [email protected]
Subject: Re: Problem with plugins
Thank you, I forgot this little particular... :-)
Anyway it still doesn't work! I keep getting 0 hits...
Here's the modified plugin.xml (I tried both with fields="quiewId" and
fields="DEFAULT"):
<?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"
name="Nutch URL Query Filter"
point="org.apache.nutch.searcher.QueryFilter">
<implementation id="QuiewQueryFilter"
class="
org.apache.nutch.searcher.quiew.QuiewQueryFilter"
fields="DEFAULT"/>
</extension>
</plugin>
On 1/31/06, Vanderdray, Jacob <[EMAIL PROTECTED]> wrote:
>
> 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