Improve compatibility with different Solr versions.
Upgrade Solr to version 4.9.0