mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: search within title using in:title
Also - Significantly improved search ranking, title is treated most strongly - Adds tag names to the index - Run search re-indexer more aggressively - Re-index topic and all posts on category change
This commit is contained in:
@@ -49,7 +49,7 @@ class UserSearch
|
||||
|
||||
if @term.present?
|
||||
if SiteSetting.enable_names? && @term !~ /[_\.-]/
|
||||
query = Search.ts_query(@term, "simple")
|
||||
query = Search.ts_query(term: @term, ts_config: "simple")
|
||||
|
||||
users = users.includes(:user_search_data)
|
||||
.references(:user_search_data)
|
||||
|
||||
Reference in New Issue
Block a user