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.

(Nik Everett) #2

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().

(system) #4

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