org.apache.nutch.searcher
Class FieldQueryFilter

java.lang.Object
  extended by org.apache.nutch.searcher.FieldQueryFilter
All Implemented Interfaces:
Configurable, Pluggable, QueryFilter
Direct Known Subclasses:
URLQueryFilter

public abstract class FieldQueryFilter
extends Object
implements QueryFilter

Translate query fields to search the same-named field, as indexed by an IndexingFilter. Best for tokenized fields.


Field Summary
 
Fields inherited from interface org.apache.nutch.searcher.QueryFilter
X_POINT_ID
 
Constructor Summary
protected FieldQueryFilter(String field)
          Construct for the named field.
protected FieldQueryFilter(String field, float boost)
          Construct for the named field, boosting as specified.
 
Method Summary
 BooleanQuery filter(Query input, BooleanQuery output)
          Adds clauses or otherwise modifies the BooleanQuery that will be searched.
 Configuration getConf()
           
 void setConf(Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldQueryFilter

protected FieldQueryFilter(String field)
Construct for the named field.


FieldQueryFilter

protected FieldQueryFilter(String field,
                           float boost)
Construct for the named field, boosting as specified.

Method Detail

filter

public BooleanQuery filter(Query input,
                           BooleanQuery output)
                    throws QueryException
Description copied from interface: QueryFilter
Adds clauses or otherwise modifies the BooleanQuery that will be searched.

Specified by:
filter in interface QueryFilter
Throws:
QueryException

setConf

public void setConf(Configuration conf)
Specified by:
setConf in interface Configurable

getConf

public Configuration getConf()
Specified by:
getConf in interface Configurable


Copyright © 2006 The Apache Software Foundation