Revert "FEATURE: new setting to prioritize open topics in search"

This commit is contained in:
Arpit Jalan
2017-06-03 01:54:35 +05:30
committed by GitHub
parent 44cf0bdf9e
commit a1ebd67237
4 changed files with 0 additions and 24 deletions

View File

@@ -694,8 +694,6 @@ class Search
posts = posts.order("posts.like_count DESC")
end
else
posts = posts.order("topics.closed") if SiteSetting.prioritize_open_topics_in_search
posts = posts.order("TS_RANK_CD(TO_TSVECTOR(#{query_locale}, topics.title), #{ts_query}) DESC")
data_ranking = "TS_RANK_CD(post_search_data.search_data, #{ts_query})"