Added rake task to inject data into solr

By simply running rake data:mock, it will delete all information in your solr index, read from a file in tmp called mock_data.txt and commit that back into solr.
How can I change the string into a proper hash then?