BlacklistFilter#
- class BlacklistFilter(config)#
Bases:
Filter
The blacklist
Filter
removes aDocument
or marks aDocument
to be skip based on a blacklistInput - all input fields need to be of type
str
orlist
[str
].Output - No output specific output format due to removal or marking to skip of the whole
Document
- Parameters:
Example
{ "step": "filter", "type": "blacklist", "blacklists":{"body":["the","body","blacklist"]} }
Methods Summary
process_doc
(doc)Process a document
Methods Documentation