3

I have my own custom table with FK of product id and my own custom sku

when customer search the product it should also be searched from my custom sku of custom table along with default search

how to do it in M2

1

Finally, I found the solution

  1. add or map the table in TableMapper (Magento\CatalogSearch\Model\Search\TableMapper)

  2. Write a plugin for search map (Magento\Framework\Search\Adapter\Mysql\Query\Builder\Match)

  • Can you show example code please? – JELLEJ Jan 22 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.