-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncated score when using the significat terms aggregation #32770
Labels
Comments
Pinging @elastic/es-core-infra |
Thanks, good catch! |
markharwood
added a commit
to markharwood/elasticsearch
that referenced
this issue
Aug 10, 2018
…g parsed as long. Added test. Thanks for the report/fix, Blakko Closes elastic#32770
markharwood
added a commit
that referenced
this issue
Aug 14, 2018
Significance score doubles were being parsed as long. Existing tests did not catch this because SignificantLongTermsTests and SignificantStringTermsTests did not set the score. Fixed these and also added integration test. Thanks for the report/fix, Blakko Closes #32770
markharwood
added a commit
that referenced
this issue
Aug 14, 2018
Significance score doubles were being parsed as long. Existing tests did not catch this because SignificantLongTermsTests and SignificantStringTermsTests did not set the score. Fixed these and also added integration test. Thanks for the report/fix, Blakko Closes #32770
jasontedor
added a commit
that referenced
this issue
Aug 15, 2018
* 6.x: (96 commits) Introduce global checkpoint listeners (#32696) Use JDK 10 for 6.4 BWC builds (#32866) Remove unused imports - follow up to removal of test in issue 32855 Removed flaky test. Looks like randomisation makes these assertions unreliable. This test is superfluous - it was added to address #32770 but it later turned out there was an existing test that just required a fix to provide the missing test coverage. [test] mute IndexShardTests.testDocStats Test: Fix forbidden uses in test framework (#32824) Security: remove password hash bootstrap check (#32440) Move validation to server for put user requests (#32471) [ML] Add high level REST client docs for ML put job endpoint (#32843) Painless: Change fqn_only to no_import (#32817) [test] mute testSearchWithSignificantTermsAgg Backport: CompletableContext class to avoid throwable (#32829) [TEST] Select free port for Minio (#32837) SCRIPTING: Support BucketAggScript return null (#32811) (#32833) HLRC: Add Delete License API (#32586) Aggregations/HL Rest client fix: missing scores (#32774) HLRC: migration get assistance API (#32744) Fix NOOP bulk updates (#32819) Increase logging testRetentionPolicyChangeDuringRecovery AwaitsFix case-functions.sql-spec ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 of0.0
.Looking at the code it feels like here
elasticsearch/server/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantTerms.java
Line 178 in 9561a0a
there should be
The text was updated successfully, but these errors were encountered: