I used to use ElasticsearchTemplate
to query ES.Recently I found a new component Resthighlevelclient
can also query ES.Can anyone tell me the difference between the two and how to choose?
Asked
Active
Viewed 732 times
0

SuperPirate
- 146
- 1
- 4
1 Answers
2
- ElasticsearchTemplate is now deprecated and ElasticSearchRestTemplate is recommended.
- ElasticSearchRestTemplate is built on the top of RestHighLevelClient. You can think of it as a Spring wrapper over RestHighLevelClient.

Sahil Gupta
- 2,028
- 15
- 22
-
Thank you.I I'm going to use ElasticSearchRestTemplate now. – SuperPirate May 19 '21 at 01:35
-
Welcome. Please accept it as an answer it answers your question – Sahil Gupta May 19 '21 at 02:27