What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi, for the latest spryker version... Should we use the searchClient or the searchElasticSearchClien
Comments
-
Hey!
You should useSearchClient
. It will delegate calls to the vendor specific search client if you have one. By default, with the latest release and proper migration, it will delegate it toSearchElasticSearchClient
as the only one available, but if you have an old version or didnβt migrated properly it will use previous realisation as a fallback.0 -
Hi, thank you for the information. I upgraded to the latest spryker modules and now I do net get the category and product pages to work. And it seems there is even a bug or missconfiguration for me
Exception Your query class "Spryker\Client\Search\Plugin\Elasticsearch\Query\SearchKeysQuery" must implement Spryker\Client\SearchExtension\Dependency\Plugin\SearchContextAwareQueryInterface interface.
0 -
the search index is switched from _search to _page
0 -
I have fixed the exception for me locally so this works
0 -
Is it one of the core query classes that throws the exception?
0 -
yes
0 -
Could you send me exact class, that I can check what is wrong?
0 -
in zed under maintenance search
0 -
vendor/spryker/search/src/Spryker/Client/Search/SearchFactory.php uses the deprecated vendor/spryker/search/src/Spryker/Client/Search/Plugin/Elasticsearch/Query/SearchKeysQuery.php
0 -
in vendor/spryker/search/src/Spryker/Client/Search/Delegator/SearchDelegator.php:52 you check for
instanceof SearchContextAwareQueryInterface
0 -
Yep. All query classes should implement this new interface.
What version ofspryker/catalog
module fo you have?As for maintenance page, as I know, itβs unavailable for now with new approach. The new maintenance page should be released soon.
0 -
5.6.0
"name": "spryker/catalog", "version": "5.6.0", "source": { "type": "git", "url": "<https://github.com/spryker/catalog.git>", "reference": "5b8b4611b2624f4c96a0170ebb7779bf9c30fac9" }, "dist": { "type": "zip", "url": "<https://api.github.com/repos/spryker/catalog/zipball/5b8b4611b2624f4c96a0170ebb7779bf9c30fac9>", "reference": "5b8b4611b2624f4c96a0170ebb7779bf9c30fac9", "shasum": "" }
0 -
Sorry, catalog is definitely not the case. Missed a few messages that you sent π
As I said, maintenance page is broken right now and doesnβt work with a new approach. Fix for is on the way, and it should represent separate page for specific vendor that is in use. I can notify you when itβs live.
For the actual search functionality, we still use
Search
module as an entry point.0 -
ok thank you. so i have to keep debugging
0 -
Let me know, if you have other questions. Iβm glad to help
0 -
maybe you have a clue how I can check if everything is configured right or how I can debug why every category and product ends in a 404?
0 -
urls are available in redis
0 -
and for the yves router cache warmup, should there something gernerated for the catalog page, pdp etc.?
0 -
-
Sorry, was away from the computer. Let me check
0 -
So, regarding, why do you ends on the 404 page, Iβm not sure for now. Need some more context. But it might be related to your next question.
We have a few router plugins for the yves. One of them uses that cache that is generated by yves router cache warmup command. But we have a few more. Next one is the
StorageRouterPlugin
that actually used for cases with pdp and catalog page. It requires that such resources registered in the
StorageRouterDependencyProvider::getResourceCreatorPlugins()
0 -
So
RouterDependencyProvider::getRouterPlugins()
should have
StorageRouterPlugin
registered
And for registering resources you need register them in the
StorageRouterDependencyProvider
0 -
<?php /** * This file is part of the Spryker Suite. * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace Pyz\Yves\StorageRouter; use SprykerShop\Yves\CatalogPage\Plugin\StorageRouter\CatalogPageResourceCreatorPlugin; use SprykerShop\Yves\CmsPage\Plugin\StorageRouter\PageResourceCreatorPlugin; use SprykerShop\Yves\MerchantProfilePage\Plugin\MerchantProfilePageResourceCreatorPlugin; use SprykerShop\Yves\ProductDetailPage\Plugin\StorageRouter\ProductDetailPageResourceCreatorPlugin; use SprykerShop\Yves\ProductSetDetailPage\Plugin\StorageRouter\ProductSetDetailPageResourceCreatorPlugin; use SprykerShop\Yves\RedirectPage\Plugin\StorageRouter\RedirectResourceCreatorPlugin; use SprykerShop\Yves\StorageRouter\StorageRouterDependencyProvider as SprykerShopStorageRouterDependencyProvider; class StorageRouterDependencyProvider extends SprykerShopStorageRouterDependencyProvider { /** * @return \SprykerShop\Yves\StorageRouterExtension\Dependency\Plugin\ResourceCreatorPluginInterface[] */ protected function getResourceCreatorPlugins(): array { return [ new PageResourceCreatorPlugin(), new CatalogPageResourceCreatorPlugin(), new ProductDetailPageResourceCreatorPlugin(), new ProductSetDetailPageResourceCreatorPlugin(), new RedirectResourceCreatorPlugin(), new MerchantProfilePageResourceCreatorPlugin(), ]; } }
0 -
smth like that
0 -
ok thx for feedback
0 -
i have all plugins registered except merchant
0 -
Hi @UJY8FHK99 I still get 404 on Catalog pages and for products
"No route found for "GET ..."
Exception. Maybe you have another hint for me where I can take a closer look? Plugins are available in collection
0 -
Hey! Iβll check in a few minutes
0 -
thank you
0 -
Would be nice if you can send me listing of yours
Pyz\Yves\Router\RouterDependencyProvider
and
Pyz\Yves\StorageRouter\StorageRouterDependencyProvider
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 78 Spryker News
- 936 Developer Corner
- 793 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 27 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random