FuzzyTermMatcher#

class FuzzyTermMatcher(*args, **kwds)#

fuzzy_match | Perform fuzzy term matching on the selected fields.

pydantic model PluginConfig#
Fields
  • fields (str)

  • fuzziness (Union[int, str])

  • fuzzy_max_expansions (int)

  • fuzzy_prefix_length (Optional[int])

  • text (Optional[str])

PluginConfig.plugin_name: ClassVar[str] = 'fuzzy_match'#

Used to register and reference the plugin within a query.

field PluginConfig.text: Optional[str] = ''#

Text to be used for fuzzy search

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.

field PluginConfig.fields: str = 'body'#

Comma separated list of searchable fields