org.apache.nutch.indexer.field
Class FieldFilters

java.lang.Object
  extended by 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.


Field Summary
static String FIELD_FILTER_ORDER
           
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
FieldFilters(Configuration conf)
          Configurable constructor.
 
Method Summary
 Document filter(String url, Document doc, List<FieldWritable> fields)
          Runs all FieldFilter extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FieldFilters

public FieldFilters(Configuration conf)
Configurable constructor.

Method Detail

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