- All Superinterfaces:
- Configurable, Pluggable
public interface FieldFilter
- extends Pluggable, Configurable
Filter to manipulate FieldWritable objects for a given url during indexing.
Field filters are responsible for converting FieldWritable objects into
lucene fields and adding those fields to the Lucene document.
static final String X_POINT_ID
Document filter(String url,
- Returns the document to which fields are being added or null if we are to
stop processing for this url and not add anything to the index. All
FieldWritable objects for a url are aggregated from databases passed into
the FieldIndexer and these fields are then passed into the Field filters.
It is therefore possible for fields to be added, removed, and changed
before being indexed.
url - The url to index.
doc - The lucene document
fields - The list of FieldWritable objects representing fields for
- The lucene Document or null to stop processing and not index any
content for this url.
IndexingException - If an error occurs during indexing
Copyright © 2006 The Apache Software Foundation