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
SearchRequestBuilder#setTrackScores(true)
But I am using RestHighLevelClient. with this how can I create the instance of SearchRequestBuilder?
Is there any other alternate solution for this problem?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.