How to create a magento custom search engine


Rate this article

Share this article

The default Magento search engine is not that great. A custom search engine can help you surface the right products to your customers in your Magento store. It also helps in reducing the time for product discovery.

In this article, we will see how to create a Magento custom search engine for a Magento store ( using expertrec, google custom search, and duckduckgo custom search.

Using expertrec to build a Magento custom search engine- Price ( 9 USD per month+) No ads

Here are the steps-

  1. Go to 
  2. Sign in with your Gmail id.magento custom search
  3. Enter the website URL of your Magento site and choose your nearest server location.magento custom search
  4. By now crawl should have started for your site. Get the code and add it to your Magento site. Get your developer help if needed.
  5. Replace your Magento search box form with expertrec search bocThe template for Magento search box can be found at app/design/frontend/base/default/template/catalogsearch/ We will customize this so it will call expertrec search results when a search query is entered. Replace the following code with the code you copied from expertrec’s control panel.  Replace 
    <form id="search_mini_form" action="<?php echo $this->helper('catalogsearch')->getResultUrl() ?>" method="get">
    <div class="form-search">
            <label for="search"><!--?php echo $this--->__('Search:') ?></label>
    <input id="search" class="input-text" name="<?php echo $this->helper('catalogsearch')->getQueryParamName() ?>" type="text" value="<?php echo $this->helper('catalogsearch')->getEscapedQueryText() ?>">
            <button class="button" title="<?php echo $this->__('Search') ?>"><span><span><!--?php echo $this--->__('Search') ?></span></span></button>
            <script type="text/javascript"></script></div>


    magento custom search

  6. That’s it, you have added custom search to your magento site. You can monitor crawl status and edit look and feel of the search UI in your control panel.
    magento custom search

Here is a screenshot of the search autocomplete UI.magento custom search

And the search results page-magento custom search

Create your own Magento custom search engine at

Get MAGENTO Search for your Website at $9

Are you showing the right products, to the right shoppers, at the right time? Contact us to know more.
You may also like