The search of product name, SKU does not get the exact result in Magento 2
-
13-04-2021 - |
Вопрос
I am using Magento 2.3.4. I want to get the exact search result using SKU or product name but currently get the related results. Please help and Thanks in advance.
Решение
search functionality is working as when you search any keyword then this keyword looking in the product description, short-description, name, and SKU or enabled search attribute settings.
if you want to get the exact search result using only SKU or product name you can disable another attribute search settings
path: Stores > Attributes > Product > [Attributes]
And Increase search Weight of SKU and Name like(1 to 10)
If in your project enable Mageplaza_LayeredNavigation then try to disable it because sometimes it affects the search result.
Run CLI commands
bin/magento indexer:reindex
bin/magento cache:clean