Fixed some bugs in json2solr