On Feb 2, 2007, at 11:36 PM, Erik Hatcher wrote:
It also provides a specific scope for a connection, rather than it being possible for it to leak out (as an instance variable could). It hides the details of the Connection constructor also (maybe to cache instanced keyed by Solr URL?).
Yeah, it would make more sense if like w/ File.open there was something to close.
solrshell, regardless of the Connection do .. end block thing, will evolve into something quite slick. Here's a PyLucene shell that Otis pointed me to: <http://public.dev.nuxeo.com/~ben/plush/>. Wow!
Wow, that's awesome :-) //Ed