Skip to content

Commit 02d6fdd

Browse files
committed
ES7 compatibility
1 parent 9c2a211 commit 02d6fdd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Model/Index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function execute(
3434
$type = $index;
3535
}
3636

37+
if ($this->versionProvider->provide() >= \Spameri\ElasticQuery\Response\Result\Version::ELASTIC_VERSION_ID_7) {
38+
$type = NULL;
39+
}
40+
3741
try {
3842
$response = $this->clientProvider->client()->index(
3943
(

0 commit comments

Comments
 (0)