cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 defult search is not working properly

SOLVED

magento 2 defult search is not working properly

when we searched keyword 't shirt' in our website it's working fine but when we search 'tshirt' then it's not working.please help me how to fix this ? 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: magento 2 defult search is not working properly

Hello zargamtech5430,

 

I hope you are doing well!

 

There are various reasons why Magento 2 search doesn't function properly. Unfortunatelythis is a very common problem within the Magento Platform. The below-given ways will help you to solve the most common issues and improve your search in Magento 2.

 

  1. Clear the Magento Cache from Cache Management:

 

Most of the time, Magento search does not function due to caching issues. For this, you will have to log in to your Magento Admin and then go to System-> Cache management-> Flush Magento cache.

 

Flush Magento cache is a procedure for clearing stale data in Magento cache storage that can affect your search results.

 

2. Re-Index Magento Data:

 

It can also be a big issue that is causing an error in search. In order to fix this, reindex all the data in Magento.

Go to System-> Index management -> Select all -> Actions -> Update from the save

 

3. Configure the search in Magento 2:

 

Another common solution for a not-working search in Magento 2 store is just setting up the right configurations.

 

Go to the stores -> configuration -> catalog -> catalog search.

 

From there, set the Minimal Query Length to 1 and Maximum Query Length to 128. 

 

Then, enable search suggestions (Yes) and set 2 in the Search Suggestions Count.

 

Note: After these changes to the catalog search, do not forget to flush the cache 

 

          4. Recognize or set search by synonyms:

 

The functionality of synonyms is key to your internal search success and in making search results more relevant. In order to add synonyms go to

Marketing → SEO & Search → Search Synonyms.

Subsequently, click on the New Synonym Group button to create a new group of synonyms. Now, you will have to set the scope and enter the synonyms by separating them with commas. Then save the changes and review the result in the frontend.

 

If you are using full-text search, then try to configure MySQL. It can help if the Magento search is not working. It consists of 2 steps to fix: increasing key_buffer_size in your MySQL and enabling MySQL query cache. First, you have to check whether caching is enabled or not. Then, you can make a query in the form with the help of 'query_cache_size.'

 

I hope your search issue for the Magento 2 gets fixed with the above solution and works normally.

 

------------------------

Regards,
Rex M

View solution in original post

1 REPLY 1

Re: magento 2 defult search is not working properly

Hello zargamtech5430,

 

I hope you are doing well!

 

There are various reasons why Magento 2 search doesn't function properly. Unfortunatelythis is a very common problem within the Magento Platform. The below-given ways will help you to solve the most common issues and improve your search in Magento 2.

 

  1. Clear the Magento Cache from Cache Management:

 

Most of the time, Magento search does not function due to caching issues. For this, you will have to log in to your Magento Admin and then go to System-> Cache management-> Flush Magento cache.

 

Flush Magento cache is a procedure for clearing stale data in Magento cache storage that can affect your search results.

 

2. Re-Index Magento Data:

 

It can also be a big issue that is causing an error in search. In order to fix this, reindex all the data in Magento.

Go to System-> Index management -> Select all -> Actions -> Update from the save

 

3. Configure the search in Magento 2:

 

Another common solution for a not-working search in Magento 2 store is just setting up the right configurations.

 

Go to the stores -> configuration -> catalog -> catalog search.

 

From there, set the Minimal Query Length to 1 and Maximum Query Length to 128. 

 

Then, enable search suggestions (Yes) and set 2 in the Search Suggestions Count.

 

Note: After these changes to the catalog search, do not forget to flush the cache 

 

          4. Recognize or set search by synonyms:

 

The functionality of synonyms is key to your internal search success and in making search results more relevant. In order to add synonyms go to

Marketing → SEO & Search → Search Synonyms.

Subsequently, click on the New Synonym Group button to create a new group of synonyms. Now, you will have to set the scope and enter the synonyms by separating them with commas. Then save the changes and review the result in the frontend.

 

If you are using full-text search, then try to configure MySQL. It can help if the Magento search is not working. It consists of 2 steps to fix: increasing key_buffer_size in your MySQL and enabling MySQL query cache. First, you have to check whether caching is enabled or not. Then, you can make a query in the form with the help of 'query_cache_size.'

 

I hope your search issue for the Magento 2 gets fixed with the above solution and works normally.

 

------------------------

Regards,
Rex M