Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The following page has been changed by JakeVanderdray:
http://wiki.apache.org/nutch/WritingPluginExample

------------------------------------------------------------------------------
  
  == The QueryFilter ==
  
- [Needs to be added]
+ The QueryFilter gets called when the user does a search.  We're bumping up 
the boost for the recommended field in order to increase it's influence on the 
search results.
+ 
+ {{{
+ package org.apache.nutch.parse.recommended;
+ 
+ import org.apache.nutch.searcher.FieldQueryFilter;
+ 
+ import java.util.logging.Logger;
+ 
+ import org.apache.nutch.util.LogFormatter;
+ 
+ public class RecommendedQueryFilter extends FieldQueryFilter {
+ 
+       private static final Logger LOG = LogFormatter
+     .getLogger(RecommendedParser.class.getName());
+ 
+   public RecommendedQueryFilter() {
+     super("recommended", 5f);
+ 
+       LOG.info("Added a recommended query");
+   }
+ 
+ }
+ }}}
  
  == Getting Nutch to Use Your 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&kid=103432&bid=230486&dat=121642
_______________________________________________
Nutch-cvs mailing list
Nutch-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to