| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | 1 | public function search(string $index, Query $query): ElasticsearchResultSetDataProvider |
|
| 56 | { |
||
| 57 | 1 | $search = new ElasticaSearch( |
|
| 58 | 1 | $this->client |
|
| 59 | ); |
||
| 60 | |||
| 61 | 1 | return $this->resultConverter->convertResult( |
|
| 62 | 1 | $search->addIndex($index)->search( |
|
| 63 | 1 | $this->queryBuilder->getQuery( |
|
| 64 | 1 | $query |
|
| 65 | ) |
||
| 70 | } |