Skip to content

Commit

Permalink
ES7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Spamercz committed Aug 5, 2021
1 parent 9c2a211 commit 02d6fdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Model/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function execute(
$type = $index;
}

if ($this->versionProvider->provide() >= \Spameri\ElasticQuery\Response\Result\Version::ELASTIC_VERSION_ID_7) {
$type = NULL;
}

try {
$response = $this->clientProvider->client()->index(
(
Expand Down

0 comments on commit 02d6fdd

Please sign in to comment.