Gaining access to _score value in Java

What are the available methods to obtain access to _score value of a hit inside a Java program? Either using elasticsearch java API or spring data.

If you are using the transport API then the score method on SearchHit. If you have a SearchResponse then you can get the hits with getHits().

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.