Skip to content

Start match

Compare
Choose a tag to compare
@constantable constantable released this 12 Jan 17:16
· 11 commits to master since this release
Star matching and default orderBy (#6)

* Star matching and default orderBy

$model->toSearchableArray() could contain attributes that are not searchable Sphinx-fields, breaking this function. This happens in Laravel Nova together with Scout. The fix is to use star matching, which would give you the same results.

Adapted from https://github.com/DieZeeL/laravel-scout-sphinx/blob/master/src/Engines/SphinxEngine.php