When using the significant terms aggregation with the Java High Level REST Client the returned score is truncated.
What i mean is that when querying ES via API i get the correct score eg: 0.1243235, but the same query executed via the client returns a score of 0.0.
Looking at the code it feels like here
|
bucket.score = parser.longValue(); |
there should be
bucket.score = parser.doubleValue();