reworked how solr api compatibility is selected [skip ci]