How can I expand full-text-boosted for a product concrete with new column from db?

ivan-jurisic
ivan-jurisic Senior Spryker developer Posts: 25 🧑🏻‍🚀 - Cadet

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

  • profuel
    profuel SSA Sprykee Posts: 82 🪐 - Explorer
    edited October 2024

    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!