Disable full text search timeline

This commit is contained in:
KMY 2023-05-12 16:51:59 +09:00
parent ab8d77adb0
commit 66de2ee2c1

View file

@ -56,7 +56,7 @@ class SearchService < BaseService
privacy_definition = privacy_definition.or(StatusesIndex.filter(term: { searchability: 'direct' }).filter(term: { account_id: @account.id }).track_scores(true).min_score(@min_score))
end
definition = parsed_query.apply(StatusesIndex.min_score(@min_score).track_scores(true)).order(id: :desc)
definition = parsed_query.apply(StatusesIndex.min_score(@min_score).track_scores(true))
definition = definition.filter(term: { account_id: @options[:account_id] }) if @options[:account_id].present?
definition = definition.and(privacy_definition)