fixed update to work with solr 4