PrefixTermMatcher#
- class PrefixTermMatcher#
prefix_match | Perform (phrase) prefix term matching on the specified fields, enforce 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])
min_token_length (int)
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