allow to switch between elastic search and solr