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