I have hosted my elastic search (7.7) instance on AWS, and I am using Springboot version 2.2. I am trying to create a elastic search repository but i get the error
*********
APPLICATION FAILED TO START
*********
Description:
Field elasticSearchRepository in <package> required a bean named 'elasticsearchTemplate' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean named 'elasticsearchTemplate' in your configuration.