diff --git a/src/Model/Index.php b/src/Model/Index.php index f6e277b..64a1bda 100644 --- a/src/Model/Index.php +++ b/src/Model/Index.php @@ -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( (