org.apache.nutch.searcher
Class QueryFilters
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryFilters
public QueryFilters(Configuration conf)
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