Domanda

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.

È stato utile?

Soluzione

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]

enter image description here

And Increase search Weight of SKU and Name like(1 to 10)

enter image description here

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top