Currently I have the query
create index on pub.product using gin (title gin_trgm_ops);
select title
from pub.product
where title %> 'search phrase'
order by title <->> 'search phrase';
I will be grateful for adding this functionality to the library, or instructions on how to write this plugin yourself.