Method |
Description |
|
__construct ( Elasticsearch\Client $elastic, $index ) : void |
Create a new engine instance. |
|
delete ( Illuminate\Database\Eloquent\Collection $models ) : void |
Remove the given model from the index. |
|
getTotalCount ( mixed $results ) : integer |
Get the total count from a raw result returned by the engine. |
|
map ( mixed $results, Model $model ) : Illuminate\Database\Eloquent\Collection |
Map the given results to instances of the given model. |
|
paginate ( Laravel\Scout\Builder $builder, integer $perPage, integer $page ) : mixed |
Perform the given search on the engine. |
|
search ( Laravel\Scout\Builder $builder ) : mixed |
Perform the given search on the engine. |
|
update ( Illuminate\Database\Eloquent\Collection $models ) : void |
Update the given model in the index. |
|