Sample code using apache solr