Top Banner
Searching the Now Josh Lucas EarthLink XTech 2007
24

Searching the Now

Jun 29, 2015

Download

Technology

lucasjosh

My presentation from XTech this year.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Searching the Now

Searching the Now

Josh Lucas

EarthLink

XTech 2007

Page 2: Searching the Now

Searching the Past

Page 3: Searching the Now

The Black Box

Page 4: Searching the Now

Under the Influence of Crawlers

Page 5: Searching the Now

Bigger is Better

Page 6: Searching the Now

The Rise of One Box

Page 7: Searching the Now

More, More, More

Page 8: Searching the Now

Faster, Faster, Faster

Page 9: Searching the Now

The Challenge

Page 10: Searching the Now

Who Am I ?

Page 11: Searching the Now

Where Am I?

Page 12: Searching the Now

What Time Is It ?

Page 13: Searching the Now

Let’s Build Something

Page 14: Searching the Now

How about an XTech Event search engine?

Page 15: Searching the Now

create_table :events do |t| t.column :location, :string t.column :date_start, :datetime t.column :date_end, :datetime t.column :summary, :string t.column :description, :string t.column :url, :string t.column :lat, :float t.column :lng, :float end

Page 16: Searching the Now

Real-Time Data

• Pingerati (http://www.pingerati.net)

• Microformats (http://www.microformats.org)

• Mofo (http://mofo.rubyforge.org)

Page 17: Searching the Now

<div class="en_session_title summary"><a href="http://2007.xtech.org/public/schedule/detail/161" class="url uid">Searching the Now</a></div><div class="en_session_roominfo"> <span class="en_session_topics"> <a href="http://2007.xtech.org/public/schedule/topic/1"> Applications</a> </span>

<span class="en_session_room location"> Louvre-Palais Royal</span>

<span class="uf_timing"> <abbr class="dtstart dtstamp"

title="20070518T0900"></abbr> <abbr class="dtend" title="20070518T0945">

</abbr></span>

</div>

Page 18: Searching the Now

require 'mofo' def index lat = 48.8583 lng = 2.2945 url = params[:url] cal = hCalendar.find url cal.each do |c| e = Event.new(:summary => c.summary, :url => c.url,

:lat => lat, :lng => lng, :date_end => c.dtend, :date_start => c.dtstart,

:location => c.location, :description => c.description).save end @num = cal.size end

Page 19: Searching the Now

Indexing and Searching

• Lucene (http://lucene.apache.org)• Solr (http://lucene.apache.org/solr/)• Ferret (http://ferret.davebalmain.com/trac)• acts_as_ferret (

http://projects.jkraemer.net/acts_as_ferret/wiki)

Page 20: Searching the Now

class Event < ActiveRecord::Base

acts_as_ferret :fields => [:summary, :description]

end

results = Event.find_by_contents(q)

Page 21: Searching the Now

Personalization

• Taste (http://taste.sourceforge.net/)

Page 22: Searching the Now

Location

• GeoKit (http://geokit.rubyforge.org/)

Page 23: Searching the Now

The Future

Page 24: Searching the Now

Thanks!

Josh [email protected]