Skip to content
Snippets Groups Projects
Unverified Commit f6bcf86c authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 52ebfb77
No related branches found
No related tags found
No related merge requests found
......@@ -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)",
},
},
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment