I am using elasticsearch-rest-high-level-client 7.6.2 version to interact with elastic server from my java application.
Now I am planning to use sorting capability in elastic. When I added the sort in the elastic request. I am not getting the scores back in response.
I understood that it is expected behaviour and suggestion is to use
But I am using RestHighLevelClient. with this how can I create the instance of SearchRequestBuilder?
Is there any other alternate solution for this problem?