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..
I dont see the elastic search document has field template for the cms_search_page. Any suggestions a
Comments
-
do you mean template name or template ID of CMS Page?
0 -
in
LocaleCmsPageDataTransfer
you can find
templatePath
property, if itβs OK for you just use it in extended on project level
\Spryker\Zed\CmsPageSearch\Business\Search\DataMapper\CmsPageSearchDataMapper
and add this info to the result array.0 -
if you need additional info just expand
LocaleCmsPageDataTransfer
on project, add new properties, fill them and use inCmsPageSearchDataMapper
0 -
In Spy_cms_page table has fk_template id, which is foriegn key from spy_cms_template table. when i ran de_Search/Search GET query in elastic search i found there is no way that i can fetch the results based on template(i,e fk_template_id or spy_cms_template name column).
0 -
when i checked the elastic structure it doesnt have this key template.
0 -
out of the box yes, there is not template info.
0 -
please check
CmsPageSearchDataMapper
0 -
Do you mean
CmsDataPageMapBuilder
?
0 -
\Spryker\Zed\CmsPageSearch\Business\Search\DataMapper\CmsPageSearchDataMapper
and\Spryker\Zed\CmsPageSearch\Communication\Plugin\Search\CmsDataPageMapBuilder
i think they are related to each other if you add new data to data mapper, you need to include it inCmsDataPageMapBuilder
also0 -
I dont see a DataMapper folder
0 -
Ah sorry, itβs from latest version of the module.
in this case yes you are right
\Spryker\Zed\CmsPageSearch\Communication\Plugin\Search\CmsDataPageMapBuilder
0 -
Ok, once I add the fields in CmsPageMapBuilder, then what are the process steps to follow to see change in the result in elastic search?
0 -
these are the cmds i ran in the vagrant box
0 -
console search:setup
0 -
console queue:task:start event
0 -
just save and publish some of the page in Backoffice (Zed UI)
0 -
did that too
0 -
console search:setup you need only if you need to create some specific mappings for the ES document.
0 -
Ok
0 -
console queue:task:start event
is working as a cronjob in jenkins, you donβt need to run it manually0 -
ok
0 -
after changes of CmsDataPageMapBuilder please check spy_cms_page_search table (data and structured_data columns) you should see your new column inside
0 -
I see new column in structured_data but not in data
0 -
what is it missing that i see in one column and not in other?
0 -
maybe something here
\Spryker\Zed\CmsPageSearch\Business\Search\CmsPageSearchWriter
?0 -
mapToSearchData()
0 -
Can you give an example how to add new field to this mapTosearchData.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 74 Spryker News
- 911 Developer Corner
- 771 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 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
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random