Commerce in 7.1.x has commerce-elasticsearch6, a module that depends direction on portal-search-elasticsearch6. This dependency is a risk and should be removed or isolated.
As a Search App Dev, I can implement a future proof Index Settings Contributor that does not depend on a specific Elasticsearch version
com.liferay.commerce.elasticsearch6 module fails to start with ElasticSearch7
[Elasticsearch 6] Failing integration test: SpecificationOptionFacetsTest with "Fielddata is disabled on text fields..."