FIX: Avoid penalizing long documents too much in search.

FIX: Avoid penalizing long documents too much in search.

This is a follow up to e87ca594014733d171df0112149f49180d898678.

diff --git a/lib/search.rb b/lib/search.rb
index 61b4c25..fbc1e8c 100644
--- a/lib/search.rb
+++ b/lib/search.rb
@@ -836,14 +836,14 @@ class Search
         posts = posts.order("posts.like_count DESC")
       end
     else
-      # 2|32 divides the rank by the document length and scales the range from
-      # zero to one
+      # 1|32 divides the rank by 1 + logarithm of the document length and
+      # scales the range from zero to one
       data_ranking = <<~SQL
       (
         TS_RANK_CD(
           post_search_data.search_data,
           #{ts_query(weight_filter: weights)},
-          2|32
+          1|32
         ) *
         (
           CASE categories.search_priority

GitHub sha: e8a4d722