Ensured Solr is not contacted when not required.