@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Add must not part to query. |
42 | 42 | * |
43 | - * @param AbstractQuery|array $args Must not query |
|
43 | + * @param Ids $args Must not query |
|
44 | 44 | * |
45 | 45 | * @return $this |
46 | 46 | */ |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Sets the minimum number of should clauses to match. |
95 | 95 | * |
96 | - * @param int|string $minimum Minimum value |
|
96 | + * @param integer $minimum Minimum value |
|
97 | 97 | * |
98 | 98 | * @return $this |
99 | 99 | */ |
@@ -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(); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Elastica\Document; |
6 | 6 | use Elastica\Index; |
7 | 7 | use Elastica\Query\Ids; |
8 | -use Elastica\Query\Type; |
|
9 | 8 | use Elastica\Test\Base as BaseTest; |
10 | 9 | |
11 | 10 | class IdsTest extends BaseTest |
@@ -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); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | $mapping = new Mapping([ |
27 | 27 | 'email' => ['store' => true, 'type' => 'text', 'index' => true], |
28 | - 'content' => ['store' => true, 'type' => 'text', 'index' => true], |
|
28 | + 'content' => ['store' => true, 'type' => 'text', 'index' => true], |
|
29 | 29 | ]); |
30 | 30 | |
31 | 31 | $mapping->setSource(['enabled' => false]); |
@@ -119,7 +119,7 @@ |
||
119 | 119 | $terms = [ |
120 | 120 | 'index' => 'index_name', |
121 | 121 | 'type' => 'type_name', |
122 | - 'id' => '1', |
|
122 | + 'id' => '1', |
|
123 | 123 | 'path' => 'terms', |
124 | 124 | ]; |
125 | 125 |