Remove search result order for non-RUM indexes
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 12 Jun 2019 09:22:56 +0000 (16:22 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 12 Jun 2019 09:22:56 +0000 (16:22 +0700)
lib/pleroma/activity/search.ex

index 8cbb64cc4ea052bd5cc2c8235c179a9249d7b608..0aa2aab23dded19cf9426ed6e8e3b2a7b51a3d01 100644 (file)
@@ -39,8 +39,7 @@ defmodule Pleroma.Activity.Search do
           "to_tsvector('english', ?->>'content') @@ plainto_tsquery('english', ?)",
           o.data,
           ^search_query
-        ),
-      order_by: [desc: :id]
+        )
     )
   end