|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.basic.BasicQueryFilter
public class BasicQueryFilter
The default query filter. Query terms in the default query field are expanded to search the url, anchor and content document fields.
Field Summary |
---|
Fields inherited from interface org.apache.nutch.searcher.QueryFilter |
---|
X_POINT_ID |
Constructor Summary | |
---|---|
BasicQueryFilter()
|
Method Summary | |
---|---|
BooleanQuery |
filter(Query input,
BooleanQuery output)
Adds clauses or otherwise modifies the BooleanQuery that will be searched. |
org.apache.hadoop.conf.Configuration |
getConf()
|
void |
setAnchorBoost(float boost)
Set the boost factor for title/anchor matches, relative to url and content matches. |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
void |
setPhraseBoost(float boost)
Set the boost factor for sloppy phrase matches relative to unordered term matches. |
void |
setSlop(int slop)
Set the maximum number of terms permitted between matching terms in a sloppy phrase match. |
void |
setUrlBoost(float boost)
Set the boost factor for url matches, relative to content and anchor matches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicQueryFilter()
Method Detail |
---|
public void setUrlBoost(float boost)
public void setAnchorBoost(float boost)
public void setPhraseBoost(float boost)
public void setSlop(int slop)
public BooleanQuery filter(Query input, BooleanQuery output)
QueryFilter
filter
in interface QueryFilter
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |