how to create, in 5 minutes, your own convenient search engine
TRANSCRIPT
How to create, in 5 minutes, your own convenient search engine for Rails topics on the Web that is in many cases more useful than raw Googleby Tom Elam, about.me/tomelam
Tuesday, 14 May 13
This presentation can be found at http://slideshare.net/tomelam.
Tuesday, 14 May 13
Start with Google CSE
(Search “Google CSE”)
Tuesday, 14 May 13
The basics
• Filters out noise.
• Is specific to one or more websites.
• Allows automated use of search operators. (See http://goo.gl/JnLQQ.)
• Has an API.
• Is reusable software.
A Google Custom Search “engine”:
Tuesday, 14 May 13
Just like they said ...
A blog ...
Tuesday, 14 May 13
Documentation (lots) ...
Tuesday, 14 May 13
FAQs ...
Tuesday, 14 May 13
And a forum ...
Tuesday, 14 May 13
Extras
•Create a CSE on the fly on your own blog or website.•Create “linked” CSEs dynamically, on the fly, programmatically, anytime, as often as you want!•Submit on-demand indexing requests (one per day).•Use RESTful requests to query, using JSON or Atom.•Filter and sort results.•List search term synonyms for a CSE.
Tuesday, 14 May 13
CSE Setup
Tuesday, 14 May 13
Code<html><head> <title>My CSEs</title></head><body><script> (function() { var cx = '012478012240372427082:jzire_jwgwk'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })();</script><gcse:search></gcse:search></body></html>
Tuesday, 14 May 13
Result
Tuesday, 14 May 13
It Works!
Tuesday, 14 May 13