Created
May 20, 2015 18:14
-
-
Save blasterpal/4902be090fd8663bd31b to your computer and use it in GitHub Desktop.
Get total number of documents in Solr via Sunspot/RSolr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| solr = RSolr.connect :url => solr_server #http://solr:8983/solr/some-index | |
| response = solr.get 'select', :params => { | |
| :q => '*:*', | |
| :rows => 0 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment