Adds configurable solr

encoporate adrians changes to allow configurable solr