Step 1: Open the URL: https://programmablesearchengine.google.com in a browser and click the “Get started” button. You will be asked to log into your google account.
Step 2: In the textbox “Sites to search”, add your website.
You can add any of the following:
Individual pages: www.example.com/page.html
Entire site: www.mysite.com/*
Parts of site: www.example.com/docs/* or www.example.com/docs/ Entire domain: *.example.com
Step 3: Give some nice name to your search engine in the textbox “Name of the search engine”. Select “I am not a robot” and click the “CREATE” button. The next page will say, “Congratulations! You’ve successfully created your search engine.”
Step 5: Add the JS code to your webpage(s), and the Google search box will appear on your website.
That’s all. Now you are ready to use Google search instead of CMS search on your website.
Additional step: If you want to enable “Image search”, go to the control panel, and turn it on.