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

  • 79 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
79
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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. This presentation can be found at http://slideshare.net/tomelam.Tuesday, 14 May 13
  • 3. Start with Google CSE(Search “Google CSE”)Tuesday, 14 May 13
  • 4. Go to http://google.com/cseTuesday, 14 May 13
  • 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. Just like they said ...A blog ...Tuesday, 14 May 13
  • 7. Documentation (lots) ...Tuesday, 14 May 13
  • 8. FAQs ...Tuesday, 14 May 13
  • 9. And a forum ...Tuesday, 14 May 13
  • 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. CSE SetupTuesday, 14 May 13
  • 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. ResultTuesday, 14 May 13
  • 14. It Works!Tuesday, 14 May 13