Spring Data Elasticsearch's ElasticsearchTemplate vs ElasticsearchRestTemplate vs ElasticsearchOperations

Viewed 1374

I am in reference to Spring Data Elasticsearch's

  • org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate
  • org.springframework.data.elasticsearch.core.ElasticsearchTemplate
  • org.springframework.data.elasticsearch.core.ElasticsearchOperations

It seems they are different APIs that achieve the same goal but I am not sure what the differences are between those three types and more importantly when to use which?

Also, please guide me regarding Elasticsearch's:

  • Java High Level REST Client
  • Java Low Level REST Client

How these two are different with respect to each other and with respect to above mentioned Spring's classes?` Which one to use when and what one should do if they want to use Elasticsearch's client in Spring Boot project?

Can someone please provide advice and guidance?

1 Answers
Related