You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param options.allowEmptyQuery - Allow empty queries to match items with length <= maxDistance (default: `false`)
158
-
* @param options.maxDistance - Maximum edit distance for a match. Distance is defined as
159
-
* @param options.maxResults - Maximum number of results to return
160
-
* @param {NormalizeString} options.normalizeFn - Function to normalize strings. Should always return a string or empty string (default: `normalizeString`)
161
-
* @param options.isExactMatch - Include exact matches in results (default: `true`)
162
-
* @param options.isPrefixMatch - Include prefix matches in results (default: `true`)
163
-
* @param options.isSuffixMatch - Include suffix matches in results (default: `true`)
164
-
* @param options.isContainsMatch - Include contains matches in results (default: `true`)
165
-
* @param options.isPartialMatch - Include partial matches in results (default: `true`)
166
-
* @param options.isFuzzyMatch - Allow fuzzy matches even when `maxDistance` is negative or zero.
167
-
* @param options.deduplicateByNormalized - If `true`, deduplicate results by normalized value instead of original string.
168
163
* @returns {FuzzySearch} An object containing search results with distance and match type
169
164
* - `results`: Array of matching strings with distance and match type.
170
165
* - `totalResults`: Total number of results found.
0 commit comments