FuzzyTermMatcher#
- class FuzzyTermMatcher#
fuzzy_match | Perform fuzzy term matching on the selected fields.
- pydantic model PluginConfig#
- Fields:
fields (str)fuzziness (int | str)fuzzy_max_expansions (int)fuzzy_prefix_length (int | None)in_order (bool)slop (int)text (str | None)
-
PluginConfig.plugin_name:
ClassVar[str] = 'fuzzy_match'# Used to register and reference the plugin within a query.
-
field PluginConfig.fuzzy_prefix_length:
Optional[int] = 2# First N characters that are not used for fuzzy string-edit distance based term matching.
-
field PluginConfig.fuzziness:
Union[int,str] = 'auto'# Fuzziness in edit-distance, how many characters per term are allowed to be changed. auto, or number of characters.
-
field PluginConfig.fuzzy_max_expansions:
int= 10# Maximum number of terms to which the query expands for fuzzy matching.