Package org.apache.nutch.indexer
Class IndexingFilters
java.lang.Object
org.apache.nutch.indexer.IndexingFilters
Creates and caches
IndexingFilter implementing plugins.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) Run all defined filters.
-
Field Details
-
INDEXINGFILTER_ORDER
- See Also:
-
-
Constructor Details
-
IndexingFilters
-
-
Method Details
-
filter
public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException Run all defined filters. Note, may return null if the the document was filtered- Parameters:
doc- theNutchDocumentto process with filtersparse- correspondingParseobject for the documenturl- correspondingTexturl for the documentdatum- correspondingCrawlDatumfor the documentinlinks- correspondingInlinksfor the document- Returns:
- the
NutchDocument, null it the document was filtered - Throws:
IndexingException- if an error occurs within a filter- See Also:
-