Skip to content

Instantly share code, notes, and snippets.

View kelvinj's full-sized avatar

Kelvin Jones kelvinj

  • Bright Machine
  • Cheltenham, UK
View GitHub Profile
# Basic text search with relevancy for MongoDB.
# See http://blog.tty.nl/2010/02/08/simple-ranked-text-search-for-mongodb/
# Copythingie 2010 - Ward Bekker - ward@tty.nl
#create (or empty) a docs collection
doc_col = MongoMapper.connection.db('example_db').collection('docs')
doc_col.remove({})
#add some sample data
doc_col.insert({ "txt" => "it is what it is"})
@assaf
assaf / gist:205689
Created October 9, 2009 03:55
MySQL/EBS volume hourly snapshot
We couldn’t find that file to show.