bec_widgets.utils.fuzzy_search#
Module providing fuzzy search utilities for the BEC widgets.
Attributes#
Functions#
|
Check if the text matches any of the relevant keys in the row data. |
Module Contents#
- is_match(text: str, row_data: dict[str, Any], relevant_keys: list[str], enable_fuzzy: bool) bool#
Check if the text matches any of the relevant keys in the row data.
- Parameters:
text (str) – The text to search for.
row_data (dict[str, Any]) – The row data to search in.
relevant_keys (list[str]) – The keys to consider for searching.
enable_fuzzy (bool) – Whether to use fuzzy matching.
- Returns:
True if a match is found, False otherwise.
- Return type:
bool
- FUZZY_SEARCH_THRESHOLD = 80#