Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created April 23, 2009 03:03
Show Gist options
  • Save mwmitchell/100264 to your computer and use it in GitHub Desktop.
Save mwmitchell/100264 to your computer and use it in GitHub Desktop.
solr = RSolr.connect
solr.extend RSolr::Ext::Connection
full_response = solr.find({:q=>'*:*'}, :response=>true)
one_doc = solr.find({:q=>'blah'}, :first=>true)
one_doc = solr.find_by_id(10)
full_response_with_one_doc = solr.find({:q=>'blah'}, :first=>true, :response=>true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment