I am facing an issue in search Magento 2.4. I want to change the search behavior For example: I search RP-4 then getting products that contained RP-4 string.

Then I search RP4 result No record Found

I want to get the same result as RP-4 against RP4

  • are you using elasticsearch? – Rizwan Khan Jun 1 at 10:07
  • @RizwanKhan I did not change anything in the project search – Mohsin Raza Jun 1 at 10:17
  • you are using magento2.3 or magento 2.4? – Rizwan Khan Jun 1 at 10:18
  • go to store-> configuration -> catalog -> catalog -> catalog search .. and check what is selected in Search Engine ? – Rizwan Khan Jun 1 at 10:19
  • 1
    @RizwanKhan Magento version is 2.4.1 and Search engine is elasticsearch 7.0 – Mohsin Raza Jun 1 at 10:24

You can change the following settings and verify the search again.

please login into admin and go to the below path

store-> configuration -> catalog -> catalog -> catalog search

Set the Minimum Terms to Match to 100%

run the indexer command from your Magento web root.

bin/magento i:rei

and verify the search again on the frontend.

more information can be found here

  • 1
    No it's not helpfull – Mohsin Raza Jun 1 at 11:35

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.