1

We have scenario, where we do search very frequently. We are using RestHighLevelClient (6.2).

Is it required to close the RestHighLevelClient after every search response?

if yes, is there any performance impact on initializing the client on every request .

javaLearner java
  • 109
  • 3
  • 17
  • Does this help: https://stackoverflow.com/questions/46166955/how-to-properly-close-raw-restclient-when-using-elastic-search-5-5-0-for-optimal/46236617#46236617 ? – Val Apr 19 '18 at 09:42

1 Answers1

2

This is a late answer. But in case anyone is looking for it:

According to The Documentation the answer is no. Only close the client when you are

well and truly done with it.

uwieuwe4
  • 143
  • 1
  • 2
  • 18