Fix wrong math function used in search query (#19481)

This commit is contained in:
Eugen Rochko 2022-10-27 02:10:38 +02:00 committed by GitHub
parent 52ebfb7792
commit f6bcf86caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class AccountSearchService < BaseService
{ {
script_score: { script_score: {
script: { script: {
source: "log2p(Math.max(doc['followers_count'].value, 0))", source: "Math.log10(Math.max(doc['followers_count'].value, 0) + 2)",
}, },
}, },
} }