In this article, we will see how to create a WordPress autocomplete search without the use of any plugin. Making a search engine is easier than ever before. With hosted search-as-a-service providers taking up the pain of building most of the search engines, the end-users’ role is limited to adding an HTML code snippet on their website to take the search live.
What is Autocomplete?
It is the capability to give completed queries or results directly even for a partial query. If you type “iph”, the system can guess that you are looking for an “iPhone”. This capability is called autocomplete. To know more, you can read all about autocomplete.
Pre-requisites for a successful implementation
- Your WordPress site should be live.
- You should have admin panel access to your WordPress site.
- Sitemap (not mandatory).
Steps to create a WordPress autocomplete search without a plugin
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.
- 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.