diff options
author | rinpatch <rinpatch@sdf.org> | 2020-11-19 16:20:59 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-11-19 16:20:59 +0000 |
commit | 6fc38aac8814fa63d6c43d004cb5280131106cb2 (patch) | |
tree | 7cfd321622447d9d64fa9f4b6332c104d0e2d719 /lib | |
parent | 6f9b03384fe50ce063e8fee3103a69dff298107b (diff) | |
parent | 1eda5ab267524aa953d093a6764d6194d4d6894e (diff) | |
download | pleroma-6fc38aac8814fa63d6c43d004cb5280131106cb2.tar.gz |
Merge branch 'fix-rum-search' into 'develop'
Fix rum search speed
See merge request pleroma/pleroma!3161
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/activity/search.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index ceb365bb3..382c81118 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -27,7 +27,10 @@ defmodule Pleroma.Activity.Search do |> maybe_restrict_local(user) |> maybe_restrict_author(author) |> maybe_restrict_blocked(user) - |> Pagination.fetch_paginated(%{"offset" => offset, "limit" => limit}, :offset) + |> Pagination.fetch_paginated( + %{"offset" => offset, "limit" => limit, "skip_order" => index_type == :rum}, + :offset + ) |> maybe_fetch(user, search_query) end |