EmptyFilter
EmptyFilter#
- class EmptyFilter(config)#
Bases:
Filter
The empty
Filter
removes aDocument
or marks aDocument
to skip based on empty fieldsInput - No specific input type necessary as long as it returns True/False for
if not field_name
.Output - No specific output format due to removal or marking to skip of the whole
Document
- Parameters
Example
{ "step": "filter", "type": "empty", "fields":["body"] }
Methods Summary
process_doc
(doc)Process a document
Methods Documentation