Closed robsontenorio closed 3 years ago
Hello @robsontenorio! What is the version of meilisearch-laravel-scout you are using? Can you check from 0.12.1 and later and tell us when you have this failure? Thanks a lot, it would be really helpful! https://github.com/meilisearch/meilisearch-laravel-scout/releases
@curquiza
Just noticed i cant combine other methods like ->take()
with custom search. Is that expected?
docker image: meilisearch:v0.18.1
composer: meilisearch-laravel-scout": "^0.12.4", "laravel/scout": "^8.6", "laravel/framework": "^8.12"
use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;
class Page extends Model
{
use Searchable;
}
I don't think this is expected (can you confirm @shokme?)
@robsontenorio, can you check if it works (or not) with previous versions, like the v0.12.1 for example? Thanks!
@curquiza No lucky at 0.12.1 :( Same issue.
I am sorry! Wrong array syntaxe ... My bad!
Wrong
$options = ['attributesToHighlight' => ['description']];
Right
$options['attributesToHighlight'] = ['description'];
Hi,
I am trying to combine custom search with
where()
.But the
->where('type_id', 3)
does not take effectIf i do a simple search it works as expected. But, for sure, i dont get hililght anymore.