diff --git a/src/Elasticsearch/Endpoints/AbstractEndpoint.php b/src/Elasticsearch/Endpoints/AbstractEndpoint.php index 489cde5ce..703f021b0 100644 --- a/src/Elasticsearch/Endpoints/AbstractEndpoint.php +++ b/src/Elasticsearch/Endpoints/AbstractEndpoint.php @@ -175,7 +175,7 @@ public function setId($docID) $docID = (string) $docID; } - $this->id = urlencode($docID); + $this->id = rawurlencode($docID); return $this; }