public class SimilarityScoringFilter extends AbstractScoringFilter
X_POINT_ID| Constructor and Description |
|---|
SimilarityScoringFilter() |
| Modifier and Type | Method and Description |
|---|---|
CrawlDatum |
distributeScoreToOutlinks(Text fromUrl,
ParseData parseData,
Collection<Map.Entry<Text,CrawlDatum>> targets,
CrawlDatum adjust,
int allCount)
Distribute score value from the current page to all its outlinked pages.
|
Configuration |
getConf() |
void |
passScoreAfterParsing(Text url,
Content content,
Parse parse)
Currently a part of score distribution is performed using only data coming
from the parsing process.
|
void |
setConf(Configuration conf) |
generatorSortValue, indexerScore, initialScore, injectedScore, passScoreBeforeParsing, updateDbScoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorphanedScorepublic Configuration getConf()
getConf in interface ConfigurablegetConf in class AbstractScoringFilterpublic void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class AbstractScoringFilterpublic void passScoreAfterParsing(Text url, Content content, Parse parse) throws ScoringFilterException
ScoringFilterpassScoreAfterParsing in interface ScoringFilterpassScoreAfterParsing in class AbstractScoringFilterurl - page urlcontent - original content. NOTE: modifications to this value are not
persisted.parse - target instance to copy the score information to. Implementations
may modify this in-place, primarily by setting some metadata
properties.ScoringFilterExceptionpublic CrawlDatum distributeScoreToOutlinks(Text fromUrl, ParseData parseData, Collection<Map.Entry<Text,CrawlDatum>> targets, CrawlDatum adjust, int allCount) throws ScoringFilterException
ScoringFilterdistributeScoreToOutlinks in interface ScoringFilterdistributeScoreToOutlinks in class AbstractScoringFilterfromUrl - url of the source pageparseData - ParseData instance, which stores relevant score value(s) in its
metadata. NOTE: filters may modify this in-place, all changes will
be persisted.targets - <url, CrawlDatum> pairs. NOTE: filters can modify this
in-place, all changes will be persisted.adjust - a CrawlDatum instance, initially null, which implementations may
use to pass adjustment values to the original CrawlDatum. When
creating this instance, set its status to
CrawlDatum.STATUS_LINKED.allCount - number of all collected outlinks from the source pageCrawlDatum.STATUS_LINKED, which contains
adjustments to be applied to the original CrawlDatum score(s) and
metadata. This can be null if not needed.ScoringFilterExceptionCopyright © 2021 The Apache Software Foundation