Change searching with # to include account index (#25638)
This commit is contained in:
parent
af54bf52c8
commit
99be47f8b9
3 changed files with 11 additions and 15 deletions
|
@ -133,8 +133,12 @@ class AccountSearchService < BaseService
|
|||
end
|
||||
|
||||
def must_clause
|
||||
fields = %w(username username.* display_name display_name.*)
|
||||
fields << 'text' << 'text.*' if options[:use_searchable_text]
|
||||
if options[:start_with_hashtag]
|
||||
fields = %w(text text.*)
|
||||
else
|
||||
fields = %w(username username.* display_name display_name.*)
|
||||
fields << 'text' << 'text.*' if options[:use_searchable_text]
|
||||
end
|
||||
|
||||
[
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue