Search: Only skip ordering the rum index.
authorlain <lain@soykaf.club>
Thu, 19 Nov 2020 15:29:31 +0000 (16:29 +0100)
committerlain <lain@soykaf.club>
Tue, 22 Dec 2020 20:03:19 +0000 (21:03 +0100)
lib/pleroma/activity/search.ex

index 95ac90acbe4d1b2a1948215caea747db40996d11..382c81118c964b5ee8448477426d328ffa9f2764 100644 (file)
@@ -28,7 +28,7 @@ defmodule Pleroma.Activity.Search do
     |> maybe_restrict_author(author)
     |> maybe_restrict_blocked(user)
     |> Pagination.fetch_paginated(
-      %{"offset" => offset, "limit" => limit, "skip_order" => true},
+      %{"offset" => offset, "limit" => limit, "skip_order" => index_type == :rum},
       :offset
     )
     |> maybe_fetch(user, search_query)