tntsearch
tntsearch copied to clipboard
Per-Model Fuzzy Search Configuration in Laravel Scout
Issue Title: Request for Per-Model Fuzzy Search Configuration in Laravel Scout
Description:
I would like to request a feature enhancement for Laravel Scout to support per-model fuzzy search configuration. Currently, fuzzy search settings in Laravel Scout are applied globally, making it challenging to customize the fuzzy search behavior on a per-model basis.
Proposal:
It would be beneficial to have the ability to configure fuzzy search settings individually for each model in Laravel Scout. This per-model configuration would allow developers to fine-tune the fuzzy search behavior to suit specific model requirements.
Possible Implementation:
One possible approach could be to extend the existing Laravel Scout configuration to include per-model fuzzy search settings. This would enable developers to define fuzzy search options for individual models within the config/scout.php
file.
Alternatively, a dedicated method or trait could be introduced that allows developers to customize fuzzy search settings on a per-model basis within the model's class definition. Or a $fuzzy property for each model. The same way there is a $asYouType property.
Hey, @nticaric can we get this PLEASE! 🙏