org.apache.nutch.indexer.field
Class FieldFilters
java.lang.Object
org.apache.nutch.indexer.field.FieldFilters
public class FieldFilters
- extends Object
The FieldFilters class provides a standard way to collect, order, and run
all FieldFilter implementations that are active in the plugin system.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIELD_FILTER_ORDER
public static final String FIELD_FILTER_ORDER
- See Also:
- Constant Field Values
LOG
public static final org.apache.commons.logging.Log LOG
FieldFilters
public FieldFilters(Configuration conf)
- Configurable constructor.
filter
public Document filter(String url,
Document doc,
List<FieldWritable> fields)
throws IndexingException
- Runs all FieldFilter extensions.
- Parameters:
url
- The url to index.doc
- The lucene index document.fields
- The lucene fields.
- Returns:
- The document to filter or null to not index this document and url.
- Throws:
IndexingException
- If an error occurs while running filters.
Copyright © 2006 The Apache Software Foundation