adds initial solr post code (not yet working).