public class CCIndexingFilter extends Object implements IndexingFilter
Modifier and Type | Field and Description |
---|---|
static String |
FIELD
The name of the document field we use.
|
static org.slf4j.Logger |
LOG |
X_POINT_ID
Constructor and Description |
---|
CCIndexingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addUrlFeatures(NutchDocument doc,
String urlString)
Add the features represented by a license URL.
|
NutchDocument |
filter(NutchDocument doc,
Parse parse,
Text url,
CrawlDatum datum,
Inlinks inlinks)
Adds fields or otherwise modifies the document that will be indexed for a
parse.
|
Configuration |
getConf() |
void |
setConf(Configuration conf) |
public static final org.slf4j.Logger LOG
public static String FIELD
public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException
IndexingFilter
filter
in interface IndexingFilter
doc
- document instance for collecting fieldsparse
- parse data instanceurl
- page urldatum
- crawl datum for the page (fetch datum from segment containing
fetch status and fetch time)inlinks
- page inlinksIndexingException
public void addUrlFeatures(NutchDocument doc, String urlString)
public void setConf(Configuration conf)
setConf
in interface Configurable
public Configuration getConf()
getConf
in interface Configurable
Copyright © 2015 The Apache Software Foundation