CoalesceFilter#
- class CoalesceFilter(config)#
Bases:
Filter
The coalesce
Filter
returns the first value which is set from a list of fields. Any string or list is accepted as the valid value, None is treated as not having been set.Input - any type can be used for the input fields.
Output - the output field is filled with data of type
str
.- Parameters
Example
{ "step": "filter", "type": "coalesce", "input_fields": ["clean_body", "body"], "output_field": "processing_body" }
Methods Summary
process_doc
(doc)Process a document
Methods Documentation