public interface IDocumentFilter
It is highly recommended to overwrite the toString()
method
to representing this filter properly in human-readable form (e.g. logging).
It is a good idea to include specifics of this filter so crawler users
can know exactly why documents got accepted/rejected if need be.
Modifier and Type | Method and Description |
---|---|
boolean |
acceptDocument(ImporterDocument document)
Whether to accept a document.
|
boolean acceptDocument(ImporterDocument document)
document
- the document to accept/rejecttrue
if accepted, false
otherwiseCopyright © 2014–2021 Norconex Inc.. All rights reserved.