-
Notifications
You must be signed in to change notification settings - Fork 362
Open
Description
Scout Version
v10.19.0
Scout Driver
Database
Laravel Version
v12.32.5
PHP Version
8.3.20
Database Driver & Version
mysql-server-8.0 on 8.0.43-0ubuntu0.22.04.2
SDK Version
No response
Meilisearch CLI Version
No response
Description
When using the database driver, it's possible to select the lookup strategy (LIKE, prefix or full text) but that must be hard-coded in the model and it can't be changed. Depending on the content and language, one of the strategies works better then the others but it's not possible to change that. For packages offering models with search capabilities, it's impossible to change the decision of the package maintainer afterwards.
Steps To Reproduce
#[SearchUsingPrefix(['id', 'email'])]
#[SearchUsingFullText(['bio'])]
public function toSearchableArray(): array
Would you accept a PR that uses model methods to get the prefix and full text columns (with options) instead?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.