scout icon indicating copy to clipboard operation
scout copied to clipboard

Need a timeout options

Open imnhasan opened this issue 1 year ago • 0 comments

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();

imnhasan avatar Aug 29 '24 08:08 imnhasan