Fix for github issue #1963
Only register ElasticSearchRepository entities