Class DedupService
java.lang.Object
com.norconex.crawler.core.doc.pipelines.DedupService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindOrTrackDocument(CrawlerEntry crawlEntry) Finds a document with the same checksum as the one supplied (effectively being a duplicate) and return its reference.findOrTrackMetadata(CrawlerEntry crawlEntry) Finds a document with the same checksum as the one supplied (effectively being a duplicate) and return its reference.voidinit(CrawlerSession session)
-
Constructor Details
-
DedupService
public DedupService()
-
-
Method Details
-
init
-
findOrTrackDocument
Finds a document with the same checksum as the one supplied (effectively being a duplicate) and return its reference. Otherwise save the checksum of the supplied document and return an empty optional.- Parameters:
crawlEntry- doc to check for duplicates- Returns:
- the duplicate reference or empty
-
findOrTrackMetadata
Finds a document with the same checksum as the one supplied (effectively being a duplicate) and return its reference. Otherwise save the checksum of the supplied document and return an empty optional.- Parameters:
crawlEntry- doc to check for duplicates- Returns:
- the duplicate reference or empty
-