| 1 | <?php |
||
| 12 | class Search extends LuceneSearch |
||
| 13 | { |
||
| 14 | use EloquentTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Search constructor. |
||
| 18 | * @param Index $index |
||
| 19 | * @param Query $query |
||
| 20 | */ |
||
| 21 | 4 | public function __construct(Index $index, Query $query) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | 1 | public function get() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param $id |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | 1 | public function findId($id) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | 1 | public function hits() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param $string |
||
| 59 | * @todo This needs to be a find all with all the search attributes. |
||
| 60 | * @return $this |
||
| 61 | */ |
||
| 62 | 1 | public function find($string) |
|
| 67 | } |
||
| 68 | |||
| 69 |