From 02d6fdd1a436fa343f5287139629c507e6fab034 Mon Sep 17 00:00:00 2001 From: VBoss Date: Thu, 5 Aug 2021 13:32:55 +0200 Subject: [PATCH] ES7 compatibility --- src/Model/Index.php | 4 ++++ 1 file changed, 4 insertions(+) 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( (