scout
scout copied to clipboard
Need a timeout options
I'm using Laravel Scout, but I can't find a timeout option. Is there a way to set a timeout or configure the search to use Meilisearch? I'm looking for something along those lines.
$search = Product::search(request()->q)
->options([
'filter' => $filter,
'limit' => (int)$limit,
'offset' => (int)$offset,
'timeoutMs' => 3, // i need something for timeout
])
->when(($inStock), function ($query) {
return $query->where('stock_status ', 'In Stock');
})
->orderBy('stock_status_id', 'asc')
->raw();