@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Set optional parameters on the existing query. |
46 | 46 | * |
47 | - * @param mixed $value Value of the parameter |
|
47 | + * @param double $value Value of the parameter |
|
48 | 48 | * |
49 | 49 | * @return $this |
50 | 50 | */ |
@@ -70,6 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Constructs search object. |
73 | + * @param BuilderInterface $builder |
|
73 | 74 | */ |
74 | 75 | public function __construct(Client $client, ?BuilderInterface $builder = null) |
75 | 76 | { |
@@ -102,7 +103,7 @@ discard block |
||
102 | 103 | /** |
103 | 104 | * Add array of indices at once. |
104 | 105 | * |
105 | - * @param Index[]|string[] $indices |
|
106 | + * @param Index[] $indices |
|
106 | 107 | */ |
107 | 108 | public function addIndices(array $indices = []): self |
108 | 109 | { |
@@ -191,6 +191,9 @@ |
||
191 | 191 | $this->assertInstanceOf(TopHits::class, $returnValue); |
192 | 192 | } |
193 | 193 | |
194 | + /** |
|
195 | + * @param TopHits $innerAggr |
|
196 | + */ |
|
194 | 197 | protected function getOuterAggregationResult($innerAggr) |
195 | 198 | { |
196 | 199 | $outerAggr = new Terms('top_tags'); |
@@ -24,6 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param array $params Additional configuration params. Host and Port are already set |
27 | + * @param \Closure $callback |
|
27 | 28 | */ |
28 | 29 | protected function _getClient(array $params = [], ?callable $callback = null, ?LoggerInterface $logger = null): Client |
29 | 30 | { |
@@ -67,6 +68,9 @@ discard block |
||
67 | 68 | return 'http://'.$proxyHost.':8001'; |
68 | 69 | } |
69 | 70 | |
71 | + /** |
|
72 | + * @param string $name |
|
73 | + */ |
|
70 | 74 | protected function _createIndex(?string $name = null, bool $delete = true, int $shards = 1): Index |
71 | 75 | { |
72 | 76 | $name = $name ?: static::buildUniqueId(); |
@@ -120,6 +124,9 @@ discard block |
||
120 | 124 | return \substr($data['version']['number'], 0, 1); |
121 | 125 | } |
122 | 126 | |
127 | + /** |
|
128 | + * @param string $version |
|
129 | + */ |
|
123 | 130 | protected function _checkVersion($version) |
124 | 131 | { |
125 | 132 | $data = $this->_getClient()->request('/')->getData(); |
@@ -124,6 +124,9 @@ |
||
124 | 124 | $client->request('_status', 'GET'); |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param string $url |
|
129 | + */ |
|
127 | 130 | protected function checkProxy($url) |
128 | 131 | { |
129 | 132 | $url = \parse_url($url); |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * |
255 | 255 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
256 | 256 | * |
257 | - * @param array|\Elastica\Document[] $docs Array of Elastica\Document |
|
257 | + * @param Document[] $docs Array of Elastica\Document |
|
258 | 258 | * |
259 | 259 | * @throws InvalidException If docs is empty |
260 | 260 | */ |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | /** |
377 | 377 | * Bulk deletes documents. |
378 | 378 | * |
379 | - * @param array|\Elastica\Document[] $docs |
|
379 | + * @param Document[] $docs |
|
380 | 380 | * |
381 | 381 | * @throws InvalidException |
382 | 382 | */ |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | } |
474 | 474 | |
475 | 475 | /** |
476 | - * @param array|\Elastica\Connection[] $connections |
|
476 | + * @param Connection[] $connections |
|
477 | 477 | * |
478 | 478 | * @return $this |
479 | 479 | */ |