Updated for compatibility with Solr 4.6.1 API.
- Thanks to Jochen Lienhard for the fix.