MergeFilter#
- class MergeFilter(config)#
Bases:
Filter
The merge
Filter
merges multiple fields into a single fieldInput - all input fields needs to be of type
str
,list
[str
] orlist
[ {‘body’:str
} ].Output - the output field is filled with data of type
str
.- Parameters:
Example
{ "step": "filter", "type": "merge", "input_fields":["title","body"], "output_field":"text" }
Methods Summary
process_doc
(doc)Process a document
Methods Documentation