Re-enable full text search timeline

This commit is contained in:
KMY 2023-07-02 09:16:41 +09:00
parent 79cf84d632
commit 6a345e1a70

View file

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