Skip to content
Browse files

note about closing connection for SolrDirectConnection

  • Loading branch information...
1 parent d5e52ac commit 298633c05f8f04a6372772a8085301724c0746db @mwmitchell mwmitchell committed Nov 13, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.rdoc
View
1 README.rdoc
@@ -35,6 +35,7 @@ To use a DirectSolrConnection (no http) in JRuby:
# note: you'll have to close the direct connection yourself unless using a block.
solr = RSolr.direct_connect(opts)
solr.select :q=>'*:*'
+ solr.connection.close
# OR using a block for automatic connection closing:
RSolr.direct_connect opts do |solr|

0 comments on commit 298633c

Please sign in to comment.
Something went wrong with that request. Please try again.