How to create, in 5 minutes, your own convenient search engine

256 views
190 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
256
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

How to create, in 5 minutes, your own convenient search engine

  1. 1. How to create, in 5 minutes, your own convenient search enginefor Rails topics on the Web that is in many cases more useful thanraw Googleby Tom Elam, about.me/tomelamTuesday, 14 May 13
  2. 2. This presentation can be found at http://slideshare.net/tomelam.Tuesday, 14 May 13
  3. 3. Start with Google CSE(Search “Google CSE”)Tuesday, 14 May 13
  4. 4. Go to http://google.com/cseTuesday, 14 May 13
  5. 5. 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
  6. 6. Just like they said ...A blog ...Tuesday, 14 May 13
  7. 7. Documentation (lots) ...Tuesday, 14 May 13
  8. 8. FAQs ...Tuesday, 14 May 13
  9. 9. And a forum ...Tuesday, 14 May 13
  10. 10. 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
  11. 11. CSE SetupTuesday, 14 May 13
  12. 12. 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
  13. 13. ResultTuesday, 14 May 13
  14. 14. It Works!Tuesday, 14 May 13

×