Skip to content

Instantly share code, notes, and snippets.

@kernow
Created December 17, 2010 16:41
Show Gist options
  • Save kernow/745242 to your computer and use it in GitHub Desktop.
Save kernow/745242 to your computer and use it in GitHub Desktop.
>> r = Company.search "teach"
=> [#<Company model: nil, avatar_mime_type: nil, avatar_size: nil, charity: false, address: "", permalink: "Finance/Teaching/conn-ortiz", name: "Conn-Ortiz", _keywords: ["love", "teach", "teaching", "conn", "ortiz"], avatar_uid: nil, created_at: Thu, 16 Dec 2010 11:19:33 UTC +00:00, category: "Teaching", member_id: nil, updated_at: Fri, 17 Dec 2010 16:33:30 UTC +00:00, url: "", _id: BSON::ObjectId('4d09f5c56c78035f08000027'), contact_title: "", tel: "", contact_surname: "", avatar_ext: nil, contact_forename: "", linkedin: nil, description: "We love teaching", avatar_name: nil, email: "ortiz_conn@feeney.uk", sector: "Finance">]
>> r = Company.search "teaching"
=> [#<Company model: {"_id"=>BSON::ObjectId('4d09f5c56c78035f08000027'), "_keywords"=>["love", "teach", "teaching", "conn", "ortiz"], "name"=>"Conn-Ortiz", "permalink"=>"Finance/Teaching/conn-ortiz", "address"=>"", "charity"=>false, "avatar_size"=>nil, "avatar_mime_type"=>nil, "model"=>nil, "category"=>"Teaching", "created_at"=>Thu Dec 16 11:19:33 UTC 2010, "avatar_uid"=>nil, "member_id"=>nil, "updated_at"=>Fri Dec 17 16:33:30 UTC 2010, "url"=>"", "tel"=>"", "contact_title"=>"", "contact_surname"=>"", "avatar_ext"=>nil, "description"=>"We love teaching", "linkedin"=>nil, "contact_forename"=>"", "sector"=>"Finance", "email"=>"ortiz_conn@feeney.uk", "avatar_name"=>nil, "relevance"=>2.0}, avatar_mime_type: nil, avatar_size: nil, charity: nil, address: nil, permalink: nil, name: nil, _keywords: [], avatar_uid: nil, created_at: nil, category: nil, member_id: nil, updated_at: nil, url: nil, _id: nil, contact_title: nil, tel: nil, contact_surname: nil, avatar_ext: nil, contact_forename: nil, linkedin: nil, description: nil, avatar_name: nil, email: nil, sector: nil>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment