From 61602a4f6bb3ac4d788fa252ebd372d1e4d550e6 Mon Sep 17 00:00:00 2001 From: teiling88 Date: Fri, 27 Sep 2024 21:28:03 +0200 Subject: [PATCH] NTR - fix es backend index --- engine/Shopware/Bundle/EsBackendBundle/EsBackendIndexer.php | 3 --- .../Bundle/EsBackendBundle/Searcher/GenericSearcher.php | 1 - 2 files changed, 4 deletions(-) diff --git a/engine/Shopware/Bundle/EsBackendBundle/EsBackendIndexer.php b/engine/Shopware/Bundle/EsBackendBundle/EsBackendIndexer.php index 54d743462db..058fdaef965 100644 --- a/engine/Shopware/Bundle/EsBackendBundle/EsBackendIndexer.php +++ b/engine/Shopware/Bundle/EsBackendBundle/EsBackendIndexer.php @@ -128,7 +128,6 @@ public function indexEntities($index, EsAwareRepository $repository, array $ids) $this->client->bulk( [ 'index' => $index, - 'type' => $repository->getDomainName(), 'body' => $documents, ] ); @@ -236,9 +235,7 @@ private function createMapping(EsAwareRepository $entity, string $index): void $arguments = [ 'index' => $index, - 'type' => $entity->getDomainName(), 'body' => $merged, - 'include_type_name' => true, ]; $this->client->indices()->putMapping( diff --git a/engine/Shopware/Bundle/EsBackendBundle/Searcher/GenericSearcher.php b/engine/Shopware/Bundle/EsBackendBundle/Searcher/GenericSearcher.php index 98ae82c5cb3..376639191fa 100644 --- a/engine/Shopware/Bundle/EsBackendBundle/Searcher/GenericSearcher.php +++ b/engine/Shopware/Bundle/EsBackendBundle/Searcher/GenericSearcher.php @@ -136,7 +136,6 @@ protected function fetch(Search $search) { $arguments = [ 'index' => $this->indexFactory->createIndexConfiguration($this->domainName)->getAlias(), - 'type' => $this->domainName, 'body' => $search->toArray(), 'rest_total_hits_as_int' => true, 'track_total_hits' => true,