WhitelistFilter#
- class WhitelistFilter(config)#
Bases:
Filter
The whitelist
Filter
removes aDocument
or marks aDocument
to be skip based on a whitelistInput - 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": "whitelist", "whitelists":{"body":["the","body","whitelists"]} }
Methods Summary
process_doc
(doc)Process a document
Methods Documentation