cancel
Showing results for 
Search instead for 
Did you mean: 

Search not working in magento 2.4

SOLVED

Search not working in magento 2.4

I have upgraded to Magento 2.4 from 2.1

Catalog Search is showing zero products for any kind of query.

but advance search is showing results

I have done re-indexing cache flush all

but no results.

PHP Version 7.3

Server Ubuntu

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Search not working in magento 2.4

@Virendra 

do you have elastic search installed & configured? 

if not then try the following: 

 

  1. Login into Magento Admin
  2. goto system configuration -> Catalog Search
  3. check the search engine 

update that to elasticseatch7  configure the host & ports then save

after that follow these commands : 

php bin/magento cache:flush
php bin/magento indexer:reset
php bin/magento indexer:reindex

Note: Make sure your elastic search server's version is 7 

I hope it works!

View solution in original post

3 REPLIES 3

Re: Search not working in magento 2.4

@Virendra 

do you have elastic search installed & configured? 

if not then try the following: 

 

  1. Login into Magento Admin
  2. goto system configuration -> Catalog Search
  3. check the search engine 

update that to elasticseatch7  configure the host & ports then save

after that follow these commands : 

php bin/magento cache:flush
php bin/magento indexer:reset
php bin/magento indexer:reindex

Note: Make sure your elastic search server's version is 7 

I hope it works!

Re: Search not working in magento 2.4

@Virendra , @amitsamsukha 

 

MySQL catalog search engine has been removed from Magento 2.4.X


So this solution how it will work?  it's not working.

Re: Search not working in magento 2.4

This isn't a direct answer to you, but for distraught Magento Devs out there who are stumbling across this post in desperation.

 

Check the version you selected in Magento matches the version of ES you have! 

 

In SSH run:

 

curl -XGET 'http://localhost:9200'

Look at the number. If it's "6.x.x" and you've selected 7 in your magento config, your search will not work! You won't get errors, it just won't work!


Don't make the same mistakes I did.