-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: filter interface * feat: scopeFilter method in Searchable trait * feat: count method and filter method annotation * feat: ability to set routing for query * style: code format * refactor: use count method in pagination method * chore: revert to original method call feat: count method feat: FilterInterface
- Loading branch information
Jaspar Gupta
authored
Dec 10, 2018
1 parent
08bdb27
commit ec3c675
Showing
5 changed files
with
90 additions
and
9 deletions.
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,19 @@ | ||
<?php | ||
|
||
namespace DesignMyNight\Elasticsearch\Contracts; | ||
|
||
use Illuminate\Database\Eloquent\Builder; | ||
|
||
/** | ||
* Interface FilterInterface | ||
* @package DesignMyNight\Elasticsearch\Contracts | ||
*/ | ||
interface FilterInterface | ||
{ | ||
/** | ||
* @param Builder $builder | ||
* | ||
* @return Builder | ||
*/ | ||
public function apply(Builder $builder):Builder; | ||
} |
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
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
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
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