PROJECTS NOTES HOME

Add programmable search engine to your site

1 Intro

Noticed such search functionality on this site - https://skybert.net/

It is so cool that you can have search without actually implementing search with code. You can of course code to implement your own search, but it's so cool to use already existing tool.

2 Implementation

Go here and create a programmable search engine - https://programmablesearchengine.google.com/about/. It should take no longer than 1 minute.

You will get something like this to add to your site. Copy it:

<script async src="https://cse.google.com/cse.js?cx=627750554da24428b">
</script>
<div class="gcse-search"></div>

There is going to be "preview" button also, click on it. Then check site:your-website.com in google search. If it shows only one entry, your main page - that's not good, google does not know a bout the rest of the pages on your site.

Let's fix that with - Make sure google knows about all pages of your site.

3 TODO Write how to implement when site is indexed