Skip to content

Commit

Permalink
Merge pull request #3105 from frknakk/master
Browse files Browse the repository at this point in the history
fix: scout search with smart search
  • Loading branch information
yajra authored Dec 12, 2023
2 parents 6fb8571 + 32d7151 commit e93a60a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,23 @@ protected function globalSearch(string $keyword): void
});
}

/**
* Perform multi-term search by splitting keyword into
* individual words and searches for each of them.
*
* @param string $keyword
* @return void
*/
protected function smartGlobalSearch($keyword): void
{
// Try scout search first & fall back to default search if disabled/failed
if ($this->applyScoutSearch($keyword)) {
return;
}

parent::smartGlobalSearch($keyword);
}

/**
* Append debug parameters on output.
*
Expand Down

0 comments on commit e93a60a

Please sign in to comment.