Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
f6bcf86c
Unverified
Commit
f6bcf86c
authored
2 years ago
by
Eugen Rochko
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix wrong math function used in search query (#19481)
parent
52ebfb77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/services/account_search_service.rb
+1
-1
app/services/account_search_service.rb
with
1 addition
and
1 deletion
+1
-1
app/services/account_search_service.rb
+
1
-
1
View file @
f6bcf86c
...
...
@@ -115,7 +115,7 @@ class AccountSearchService < BaseService
{
script_score:
{
script:
{
source:
"log
2p
(Math.max(doc['followers_count'].value, 0))"
,
source:
"
Math.
log
10
(Math.max(doc['followers_count'].value, 0)
+ 2
)"
,
},
},
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets