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

lolsob-rspec
jsgoldstein 2023-08-23 09:40:09 -04:00 committed by GitHub
parent 09dbff98df
commit dca16db19d
1 changed files with 1 additions and 1 deletions

View File

@ -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