How can I expand full-text-boosted for a product concrete with new column from db?
I've tried using search preferences but my concrete in elastic with corresponding fields doesn't change. I always have just name and sku.
Answers
-
If the data you need to boost is a product attribute, then please follow this tutorial: https://docs.spryker.com/docs/pbc/all/search/202404.0/base-shop/manage-in-the-back-office/edit-search-preferences.html#prerequisites
If the data is more custom, then In order to provide any additional data into the full-text-boosted, you need a new plugin of \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductAbstractMapExpanderPluginInterface ,which will call the method \Spryker\Zed\ProductPageSearchExtension\Dependency\PageMapBuilderInterface::addFullTextBoosted with the corresponding data.
p.s. I know the question is almost 6 month old, so if you found an answer before, please post it here next time, thank you!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 938 Developer Corner
- 795 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