PrefixTermMatcher#
- class PrefixTermMatcher(*args, **kwds)#
prefix_match | Perform (phrase) prefix term matching on specified fields, enforces phrase matching considering term-order (optionally) and phrase-slop. Can be also used as a simple implementation of typeahead functionality on text fields.
- pydantic model PluginConfig#
- Fields
fields (str)
in_order (Optional[bool])
slop (Optional[int])
text (Optional[str])
- PluginConfig.plugin_name: ClassVar[str] = 'prefix_match'#
Used to register and reference the plugin within a query.
- field PluginConfig.in_order: Optional[bool] = True#
If text terms have to be matched in-order or not