Fatal error: Uncaught Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [attributes.core.manual_sort_position] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"sw_shop1_product_20241119013501","node":"yYm4pZ8tRjWxBjeMy1l1yg","reason":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [attributes.core.manual_sort_position] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [attributes.core.manual_sort_position] in order to load field data by uninverting the inverted index. Note that this can use significant memory.","caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [attributes.core.manual_sort_position] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}},"status":400} in /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:693 Stack trace: #0 /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(333): Elasticsearch\Connections\Connection->process4xxError(Array, Array, Array) #1 /var/www/vendor/react/promise/src/FulfilledPromise.php(28): Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}(Array) #2 /var/www/vendor/ezimuel/ringphp/src/Future/CompletedFutureValue.php(65): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) #3 /var/www/vendor/ezimuel/ringphp/src/Core.php(341): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL) #4 /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(345): GuzzleHttp\Ring\Core::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure)) #5 /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(241): Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}(Array, Object(Elasticsearch\Connections\Connection), Object(Elasticsearch\Transport), Array) #6 /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(110): Elasticsearch\Connections\Connection->performRequest('POST', '/sw_shop1_produ...', Array, '{"post_filter":...', Array, Object(Elasticsearch\Transport)) #7 /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1929): Elasticsearch\Transport->performRequest('POST', '/sw_shop1_produ...', Array, Array, Array) #8 /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1353): Elasticsearch\Client->performRequest(Object(Elasticsearch\Endpoints\Search)) #9 /var/www/vendor/shopware/shopware/engine/Shopware/Bundle/ESIndexingBundle/EsClientLogger.php(102): Elasticsearch\Client->search(Array) #10 /var/www/vendor/shopware/shopware/engine/Shopware/Bundle/SearchBundleES/ProductNumberSearch.php(85): Shopware\Bundle\ESIndexingBundle\EsClientLogger->search(Array) #11 /var/www/vendor/shopware/shopware/engine/Shopware/Bundle/SearchBundleES/VariantSearch.php(62): Shopware\Bundle\SearchBundleES\ProductNumberSearch->search(Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #12 /var/www/custom/project/TspoSearchAndFilter/Bundle/SearchBundleES/VariantSearch.php(48): Shopware\Bundle\SearchBundleES\VariantSearch->search(Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #13 /var/www/vendor/shopware/shopware/engine/Shopware/Bundle/SearchBundle/ProductSearch.php(59): TspoSearchAndFilter\Bundle\SearchBundleES\VariantSearch->search(Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #14 /var/www/custom/plugins/SwagPromotion/Components/Services/ProductSearchDecorator.php(68): Shopware\Bundle\SearchBundle\ProductSearch->search(Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #15 /var/www/vendor/shopware/shopware/engine/Shopware/Bundle/SearchBundle/VariantSearch.php(66): SwagPromotion\Components\Services\ProductSearchDecorator->search(Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #16 /var/www/vendor/shopware/shopware/engine/Shopware/Core/sArticles.php(2365): Shopware\Bundle\SearchBundle\VariantSearch->search(Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #17 /var/www/vendor/shopware/shopware/engine/Shopware/Core/sArticles.php(445): sArticles->getListing(760, Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext), Object(Enlight_Controller_Request_RequestHttp), Object(Shopware\Bundle\SearchBundle\Criteria)) #18 /var/www/vendor/shopware/shopware/engine/Shopware/Controllers/Frontend/Listing.php(591): sArticles->sGetArticlesByCategory(760, Object(Shopware\Bundle\SearchBundle\Criteria)) #19 /var/www/vendor/shopware/shopware/engine/Shopware/Controllers/Frontend/Listing.php(147): Shopware_Controllers_Frontend_Listing->loadCategoryListing(760, Array, Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #20 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Controller/Action.php(188): Shopware_Controllers_Frontend_Listing->indexAction(Object(Enlight_Controller_Request_RequestHttp), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #21 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch('indexAction') #22 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp)) #23 /var/www/vendor/shopware/shopware/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch() #24 /var/www/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(AppKernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/vendor/shopware/shopware/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #27 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true) #28 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true) #29 /var/www/vendor/shopware/shopware/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true) #30 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true) #31 /var/www/vendor/shopware/shopware/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /var/www/shopware.php(20): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request)) #33 {main} thrown in /var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 693