Read this blog on custom search module for Drupal 7 for more information.
Many websites allow a user to search for text within the website using an internal search feature. Drupal core provides this with the Search module, which allows you to do a keyword search on content (text in nodes, taxonomy, etc.) and users (by name or email). In addition to having a search box to enter a keyword query into, you also have a results page, which lists the content or users that match, or a “no results” message if none match.
A search engine works by indexing your site so that it knows all of the words available and what content or users they are associated with. This needs to be updated periodically to remain accurate. If Drupal core’s search is not sufficient for your needs, there are many search engines you can integrate.
Google Custom Search allows users to add a search to their website quickly without any coding. Google custom search engine uses the regular Google index of your website and uses it to deliver the search results. While the results are decent, you will not be able to meddle with the ranking algorithm or control the indexing of data.
Being supported by ads, there is a good chance that it will end up showing the ads of even your competitors on your website. Its design limitations, ads, lack of speed made many of former Google search products’ customers look for a better solution.
How to add a Custom Search Module for Drupal 7
- Navigate to https://cse.expertrec.com/newuser?platform=cse and signup with your Google ID.
- 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.
- 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.
- 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.