| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 25 | public function suggest(string $q, int $limit = 5): SuggesterResults |
||
| 26 | { |
||
| 27 | $params = [ |
||
| 28 | 'index' => $this->index, |
||
| 29 | 'body' => [ |
||
| 30 | 'query'=>$q, |
||
| 31 | 'options' => [ |
||
| 32 | 'limit' => $limit, |
||
| 33 | ], |
||
| 34 | ], |
||
| 35 | ]; |
||
| 36 | |||
| 37 | $response = $this->client->getConnection()->suggest($params); |
||
| 38 | |||
| 39 | return \array_keys($response); |
||
|
|
|||
| 40 | } |
||
| 42 |