buildwithyab/laravel-scout-mysql-driver

Query expansion not used in select columns

Closed this issue · 0 comments

In natural language mode, we use query expansion for the where string, but not for the select columns.

compare this line:
https://github.com/yabhq/laravel-scout-mysql-driver/blob/master/src/Engines/Modes/NaturalLanguage.php#L20
with this one:
https://github.com/yabhq/laravel-scout-mysql-driver/blob/master/src/Engines/Modes/NaturalLanguage.php#L32

Is this intended? If not, I would gladly submit a pr.