Drupal comes with many customization options. But when it comes to the search engine and search results page, customization gets quite tricky. On top of this, there aren’t many guides out there on how this can be done. This post will deal with how you can create a Drupal 7 custom search results page.

Drupal 7 Custom Search Results

For this, we will use a third-party search engine which will allow for easy customization. Note that the advantage here is that you do not have to write any code or modify the Drupal theme files for this to work.

Here we will visit the steps required to add the ExpertRec Custom search engine to your website. This is one of the easiest setup processes of all the available options out there and is highly recommended.

  1. Navigate to https://cse.expertrec.com/newuser?platform=cse and signup with your Google ID.
  2. Enter your website’s URL when prompted. You can select a server location near you and add the URL of your sitemap if you wish to. These will be auto-detected otherwise.
  3. You can play around with the settings and customize the UI as the crawl runs. Once it is complete, you can check out a fully functional demo before taking the search to your website.
  4. You can take the search to your website with little to no effort. All you need to do is to paste the code snippet available on the dashboard on your website.

ExpertRec comes with more customization options that you can explore. You can read this article to find a more detailed guide on the installation and configuration.

Once you have the search live on your site (which can be done by pasting the snippet from the above link), you can use the ExpertRec dashboard to customize the search to your liking. You are free to customize both the appearance and the search results ranking criteria. This is by far the easiest way to customize your Drupal 7 Custom Search Results page.

You may also like