laravel / scout

Laravel Scout provides a driver based solution to searching your Eloquent models.
https://laravel.com/docs/scout
MIT License
1.57k stars 336 forks source link

Need a timeout options #859

Closed imnhasan closed 3 months ago

imnhasan commented 3 months ago

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();
driesvints commented 3 months ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.