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..
hello, I have technical question,how to override search engine in YVES and change url in view ? I ov
hello,
I have technical question,how to override search engine in YVES and change url in view ?
I override this file and search results go from my module but that is a correct way ?project/src/Pyz/Yves/ShopUi/Theme/default/components/molecules/search-form/search-form.twig
{% define data = {
searchUrl: path('custom-search-module'),
searchValue: app.request.get('q')
} %}
and i want learn good practice in spryker.
Comments
-
Hi Kacper, do you have an external 3rd party system that does βsearchβ for you? Which one, btw (Spryker might have an integration)?
0 -
yes i have external system,
0 -
do you know, what system it is?
0 -
its custom api
0 -
i must send data from input to other api, and shows results in spryker
0 -
my idea it's good ? custom module and doing this ?
0 -
gotcha. Then, the right way would be to keep Yves as-is, and overwrite the SearchClient, to make it communicate with external system, instead of Elastic Search
0 -
@USLUHK9SQ is that only βsearchβ functionality handled by the external system?
0 -
but when i override file like above, the search go to my module and i not using search client
0 -
on this moment only search functionality
0 -
so my idea is good or bad ?
0 -
i can do this like you suggest me,
which way is better ?0 -
Itβs incomplete, I would say. Your request is going to another system, yes. But whatβs next? How do you display the results?
0 -
do you have all the information needed for that? Also, what about βsuggestion searchβ feature?
0 -
on the spryker result page,
0 -
like on screen, witch i sent
0 -
letβs put it like that:
if your external system returns you everything you need to display data, filter it and navigate through it - your idea is good. But as soon as you need any connection with data that you have in Spryker - it wonβt work the right way0 -
"suggestion search" i don't know about this yet
0 -
okey thanks for your help
0 -
what could be easier, btw (from replacing the SearchClient) - is to replace/implement the CatalogClientInterface - the interface there is quite simple, and that it is not bound too much with Elastic search content
0 -
that would be the right way I would recommend
0 -
replacing the ext. URL in Yves - might be fast but veeery fragile thing. If youβre building a proof of concept only - go for it. Otherwise, I would not recommend that
0 -
its will be big project
0 -
so you suggest: "replace/implement the CatalogClientInterface"
0 -
?
0 -
Yes, I would go for it, as a starting point
0 -
afterwards, you could then cleanup/disable everything related to the elastic search, like publishing products from Pub&Sync
0 -
at least weβve done so on one of the projects and it worked like a charm for us. We had also product data coming from the external api (so no products in Spryker at all), too - that was more tricky, but it worked
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