chore: slightly better search

This commit is contained in:
Zach Daniel 2023-02-01 03:12:46 -05:00
parent 2266709b01
commit c475ba4c05

View file

@ -223,7 +223,7 @@ defmodule AshHq.Docs.Extensions.Search.Transformers.AddSearchStructure do
calculation:
Ash.Query.expr(
fragment(
"ts_rank_cd(?, websearch_to_tsquery(?))",
"ts_rank_cd(?, websearch_to_tsquery(?), 4)",
^ref(:searchable),
^arg(:query)
)