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

local
Eugen Rochko 2 years ago committed by GitHub
parent 52ebfb7792
commit f6bcf86caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/services/account_search_service.rb

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

Loading…
Cancel
Save