Fixing problem on solr update function [issue #1239]