mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Update Account Search to prioritize username over display name (#26623)
This commit is contained in:
parent
3aac12981c
commit
85057865b4
@ -124,7 +124,7 @@ class AccountSearchService < BaseService
|
|||||||
multi_match: {
|
multi_match: {
|
||||||
query: @query,
|
query: @query,
|
||||||
type: 'bool_prefix',
|
type: 'bool_prefix',
|
||||||
fields: %w(username username.* display_name display_name.*),
|
fields: %w(username^2 username.*^2 display_name display_name.*),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user