You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
If I understand this extra sql query check if column support fulltext search.
I think this check should not even be required but only use toSearchableArray()
Is developer's responsibility to make sure that full text search has been created correctly.
Maybe just add an extra toSearchableFulltextArray() which will be only columns that are "full textable"
I check into code a bit more and seem that this extra query is executed for select and where, because we can't access toSearchableArray().
A possible workaround could be to add a static method or property into model with array of columns searchable and one fulltextable if different from searchable.
I saw that this package added a lot of queries to my application and at the part that adds the queries, you can see a comment
@TODO cache this.
.laravel-scout-mysql-driver/src/Services/ModelService.php
Line 50 in b777fcb
Same thing in the
getAllFields
method.I suggest adding a command
scout:mysql-cache
.Is there anything preventing us from caching? Otherwise I'll gladly add a PR.
The text was updated successfully, but these errors were encountered: