From e30528fe4255510b5edd6b0f39855942029e29f8 Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Fri, 22 Jan 2021 11:43:31 +0100 Subject: Search: Move fts index to the activities. --- lib/pleroma/activity/search.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index 382c81118..4511b2533 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -57,8 +57,8 @@ defmodule Pleroma.Activity.Search do from([a, o] in q, where: fragment( - "to_tsvector('english', ?->>'content') @@ plainto_tsquery('english', ?)", - o.data, + "? @@ plainto_tsquery('english', ?)", + a.fts_content, ^search_query ) ) -- cgit v1.2.3