@@ -177,6 +177,9 @@ discard block |
||
| 177 | 177 | return 0; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string[] $fields |
|
| 182 | + */ |
|
| 180 | 183 | public function find($collection, $filters, $fields = null, $sort = null, $start = 0, $limit = 25) |
| 181 | 184 | { |
| 182 | 185 | $return_type = '_source'; |
@@ -271,6 +274,9 @@ discard block |
||
| 271 | 274 | return $filters; |
| 272 | 275 | } |
| 273 | 276 | |
| 277 | + /** |
|
| 278 | + * @param string $isNot |
|
| 279 | + */ |
|
| 274 | 280 | private static function buildFilterForKeys($key, $value, $isNot) |
| 275 | 281 | { |
| 276 | 282 | $filters = []; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | /* |
| 5 | 5 | Elasticsearch Adapter |
| 6 | 6 | */ |
| 7 | -Use Elasticsearch\Client; |
|
| 7 | +use Elasticsearch\Client; |
|
| 8 | 8 | |
| 9 | 9 | final class ElasticSearch implements Base |
| 10 | 10 | { |