Description:
This processor scans the specified attributes of FlowFiles, checking to see if any of their values are present within the specified dictionary of terms.
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi Expression Language (or simply, "expression language"), that is also indicated.
- Dictionary File
- The local file path to a new-line-delimited text file that includes terms that should trigger a match. Empty lines are ignored.
- Default value: no default
- Supports expression language: false
- Attribute Pattern
- A Java regular expression that specifies the names of attributes whose values will be matched against the terms in the dictionary file.
- Default value: .*
- Supports expression language: false
- Match Criteria
- If set to "All Must Match", then FlowFiles will be routed to the matched relationship only if all specified attributes' values are found in the dictionary file. If set to "At Least 1 Must Match", then FlowFiles will be routed to "matched" if any attribute specified is found in the dictionary file.
- Default value: At Least 1 Must Match
- Supports expression language: false
- Dictionary Filter Pattern
- A Java regular expression that will be applied to each line in the dictionary file. If the regular expression does not match the line, then the line will not be included in the list of terms to search for. If a Matching Group is specified, only the portion of the term that matches that Matching Group will be used instead of the entire term. If not specified, all terms in the dictionary will be used and each term will consist of the text of the entire line in the file.
- Supports expression language: false
Relationships:
- matched
- FlowFiles whose attributes are found in the dictionary file follow this relationship.
- unmatched
- FlowFiles whose attributes are not found in the dictionary file follow this relationship.