
Description
The Fuzzy Search Node searches through a list of strings of source data using a search pattern during the Flow execution. This Node returns the best possible matches based on a set of parameters. The Node assigns each match a score between 0 and 1, where 1 indicates the best match and 0 the worst based on the search pattern. The matches can be stored in either the Context or Input object.Parameters
Basic Options
Basic Options
Fuzzy Matching Options
Fuzzy Matching Options
Storage Options
Storage Options
Example
In this example, the Fuzzy Search Node searches for the patternJon in an array of names stored in the Context object at context.names. The Node is configured to store the results in the Input object at input.search.
The Node returns each name in the array along with a score indicating how closely it matches the search pattern.
View Example
View Example
- Add data to the Context object.
- Specify the search pattern in the Fuzzy Search Node.
- Specify the path for the source data in the Fuzzy Search Node.
- Check the search results in the Input object.
Troubleshooting
Error: this.docs.forEach is not a function
Error: this.docs.forEach is not a function
This error occurs when the source data provided to the Fuzzy Search Node isnโt an array. The Node expects an array of strings to iterate over and calculate similarity scores.