Skip to content

Commit a80f54b

Browse files
committed
Merge remote-tracking branch 'elasticsearch-php/fix/7.4.2' into HEAD
2 parents 39eb8c0 + e8ab8d0 commit a80f54b

23 files changed

+9
-187
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Release 7.4.2
2+
3+
- Fixed indexing fails for item IDs that contain slashes
4+
[#1048](https://github.com/elastic/elasticsearch-php/issues/1048)
5+
[#1017](https://github.com/elastic/elasticsearch-php/pull/1017)
6+
17
## Release 7.4.1
28

39
- We added the suppress operator `@` for the deprecation messages `@trigger_error()`.

src/Elasticsearch/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
class Client
3434
{
35-
const VERSION = '7.4.1';
35+
const VERSION = '7.4.2';
3636

3737
/**
3838
* @var Transport

src/Elasticsearch/Endpoints/AbstractEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function setType(?string $type)
160160
*
161161
* @return $this
162162
*/
163-
public function setID($docID)
163+
public function setId($docID)
164164
{
165165
if ($docID === null) {
166166
return $this;

src/Elasticsearch/Endpoints/Create.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,4 @@ public function setBody($body): Create
7272

7373
return $this;
7474
}
75-
76-
public function setId($id): Create
77-
{
78-
if (isset($id) !== true) {
79-
return $this;
80-
}
81-
$this->id = $id;
82-
83-
return $this;
84-
}
8575
}

src/Elasticsearch/Endpoints/Delete.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,4 @@ public function getMethod(): string
6363
{
6464
return 'DELETE';
6565
}
66-
67-
public function setId($id): Delete
68-
{
69-
if (isset($id) !== true) {
70-
return $this;
71-
}
72-
$this->id = $id;
73-
74-
return $this;
75-
}
7666
}

src/Elasticsearch/Endpoints/DeleteScript.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,4 @@ public function getMethod(): string
4242
{
4343
return 'DELETE';
4444
}
45-
46-
public function setId($id): DeleteScript
47-
{
48-
if (isset($id) !== true) {
49-
return $this;
50-
}
51-
$this->id = $id;
52-
53-
return $this;
54-
}
5545
}

src/Elasticsearch/Endpoints/Exists.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,4 @@ public function getMethod(): string
6565
{
6666
return 'HEAD';
6767
}
68-
69-
public function setId($id): Exists
70-
{
71-
if (isset($id) !== true) {
72-
return $this;
73-
}
74-
$this->id = $id;
75-
76-
return $this;
77-
}
7868
}

src/Elasticsearch/Endpoints/ExistsSource.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,4 @@ public function getMethod(): string
6464
{
6565
return 'HEAD';
6666
}
67-
68-
public function setId($id): ExistsSource
69-
{
70-
if (isset($id) !== true) {
71-
return $this;
72-
}
73-
$this->id = $id;
74-
75-
return $this;
76-
}
7767
}

src/Elasticsearch/Endpoints/Explain.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,4 @@ public function setBody($body): Explain
7777

7878
return $this;
7979
}
80-
81-
public function setId($id): Explain
82-
{
83-
if (isset($id) !== true) {
84-
return $this;
85-
}
86-
$this->id = $id;
87-
88-
return $this;
89-
}
9080
}

src/Elasticsearch/Endpoints/Get.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,4 @@ public function getMethod(): string
6565
{
6666
return 'GET';
6767
}
68-
69-
public function setId($id): Get
70-
{
71-
if (isset($id) !== true) {
72-
return $this;
73-
}
74-
$this->id = $id;
75-
76-
return $this;
77-
}
7868
}

0 commit comments

Comments
 (0)