org.apache.nutch.searcher
Class QueryFilters

java.lang.Object
  extended by org.apache.nutch.searcher.QueryFilters

public class QueryFilters
extends Object

Creates and caches QueryFilter implementing plugins. QueryFilter implementations should define either the "fields" or "raw-fields" attributes for any fields that they process, otherwise these will be ignored by the query parser. Raw fields are parsed as a single Query.Term, including internal punctuation, while non-raw fields are parsed containing punctuation are parsed as multi-token Query.Phrase's.


Constructor Summary
QueryFilters(Configuration conf)
           
 
Method Summary
 BooleanQuery filter(Query input)
          Run all defined filters.
 boolean isField(String name)
           
 boolean isRawField(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFilters

public QueryFilters(Configuration conf)
Method Detail

filter

public BooleanQuery filter(Query input)
                    throws QueryException
Run all defined filters.

Throws:
QueryException

isField

public boolean isField(String name)

isRawField

public boolean isRawField(String name)


Copyright © 2006 The Apache Software Foundation