Save This Page
Home » nutch-1.0 » org.apache.nutch » searcher » basic » [javadoc | source]
org.apache.nutch.searcher.basic
public class: BasicQueryFilter [javadoc | source]
java.lang.Object
   org.apache.nutch.searcher.basic.BasicQueryFilter

All Implemented Interfaces:
    QueryFilter

The default query filter. Query terms in the default query field are expanded to search the url, anchor and content document fields. Additional fields can be added by specifying parameters of the form : query.basic.(fieldname).boost to the configuration files (see nutch-default.xml for an example).Such fields will be used in the clauses generated by the BasicQueryFilter e.g. for a user query A B, it generates +(field1:A field2:A ...) +(field1:B field2:B....). If you don't want the additional fields to be included in the clauses you will need to implement a custom query filter for it.
Method from org.apache.nutch.searcher.basic.BasicQueryFilter Summary:
filter,   getConf,   setAnchorBoost,   setConf,   setPhraseBoost,   setSlop,   setUrlBoost
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.nutch.searcher.basic.BasicQueryFilter Detail:
 public BooleanQuery filter(Query input,
    BooleanQuery output) 
 public Configuration getConf() 
 public  void setAnchorBoost(float boost) 
    Set the boost factor for title/anchor matches, relative to url and content matches.
 public  void setConf(Configuration conf) 
 public  void setPhraseBoost(float boost) 
    Set the boost factor for sloppy phrase matches relative to unordered term matches.
 public  void setSlop(int slop) 
    Set the maximum number of terms permitted between matching terms in a sloppy phrase match.
 public  void setUrlBoost(float boost) 
    Set the boost factor for url matches, relative to content and anchor matches