Update Account Search to prioritize username over display name (#26623)

local
jsgoldstein 9 months ago committed by GitHub
parent 3aac12981c
commit 85057865b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/services/account_search_service.rb

@ -124,7 +124,7 @@ class AccountSearchService < BaseService
multi_match: {
query: @query,
type: 'bool_prefix',
fields: %w(username username.* display_name display_name.*),
fields: %w(username^2 username.*^2 display_name display_name.*),
},
}
end

Loading…
Cancel
Save