How to use camunda bpm elasticsearch plugin in Spring boot?

I’m trying to use this elastic search plugin https://github.com/camunda/camunda-bpm-elasticsearch in an embedded spring boot application, but it is not working.
Is there a way to configure this plugin using annotation instead of xml?