-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add null driver for database search as default
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace App\Components\Search; | ||
|
||
use App\Repositories\Document; | ||
|
||
/** | ||
* 基于数据库的搜索 | ||
*/ | ||
class NullDriver implements Driver | ||
{ | ||
|
||
public function deleteIndex($id) | ||
{ | ||
// TODO: Implement deleteIndex() method. | ||
} | ||
|
||
public function syncIndex(Document $doc) | ||
{ | ||
// TODO: Implement syncIndex() method. | ||
} | ||
|
||
public function search(string $keyword, int $page, int $perPage): ?Result | ||
{ | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters