Skip to content

Commit

Permalink
Update Account Search to prioritize username over display name (masto…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgoldstein authored and vmstan committed Jan 5, 2024
1 parent c973863 commit 556ac8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/account_search_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def core_query
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
Expand Down

0 comments on commit 556ac8a

Please sign in to comment.