added sample code to add data to solr and query