3 Ways to Drastically Improve Magento Search
The standard Magento search functionality is, let’s face it, absolute pants! There’s absolutely no need to purchase an expensive add-on search extension to improve your Magento search, which typically range from $100 in price. I have tested and optimised Magento website searches and found that the following 3 steps will drastically improve the search results on your website.
1. Change Search to Fulltext
The standard configuration is ‘search type’ set to ‘like’ which produces awful results. Go to System>Catalog>Catalog Search and change this to ‘fulltext’ and don’t forget to reindex the ‘Catalog Search Index’ before you can see the results of this (via System>Index Management)
2. Remove Search Auto Complete
Why would we want to remove this you ask yourself? Well it looks horrible for a start, and shows the number of results against each keyword which is misleading at best. Another undesirable effect of the auto complete is that when a visitor enters a search term, it’ll be added to the items in the auto complete. So spelling errors, stupid product searches et al will be included for your other website visitors to see. NOT very professional and also not a very desirable ‘improvement’.
There is a quick and easy way to remove the autocomplete if you’re confident editing files via FTP. In your template files go to /template/catalogsearch/form.mini.phtml and copy the file and make a backup of it (just in case). Now look for the line towards the bottom of the file
searchForm.initAutocomplete(‘<?php echo $this->helper(‘catalogsearch’)->getSuggestUrl() ?>’, ‘search_autocomplete’);
then just comment it out, like so
// searchForm.initAutocomplete(‘<?php echo $this->helper(‘catalogsearch’)->getSuggestUrl() ?>’, ‘search_autocomplete’);
3. Analyse and Optimise Customer Searches
Go to Catalog>Search Terms and you’ll find an invaluable record of all the search terms the visitors to your site have ever used. Click twice on the ‘Number of Uses’ column to sort from highest number of searches.
The great thing about this section of the Magento admin is that you can point particular searches to particular pages of your website. Click one of the search terms to edit it e.g. ‘pink’. Now enter the URL which shows all pink items in your website and you have full control over what your customer sees, i.e. hand-picked, pink items that you want your customers to see when searching for pink items.
Things to consider about search data:
- There are some weird search terms that must be created by robots/automated programs. Possibly trying to hack/spam your site? Not sure! As long as your software is up to date you have less to worry about because it will have all the latest security patches applied. Anyway you can ignore search terms like this ‘ or 1=1–
- If you’ve had the auto fill enabled then you’ll see that people have used the auto fill suggestions over and over again, skewing the data that would have otherwise been present had visitors been left to manually type in their own search terms.
When you’ve implemented the above don’t forget to clear the website caches as well as your browser cache before you can see the changes. I’m sure you’ll be delighted with the improvements gained from these 3 configuration updates.
If you found this useful and it improved your Magento search, please ‘like’ and share it. Thanks!