make solr url lookup a function