Próbuję użyć TrigramSimilarity, mam zainstalowane w bazie pg_trgm screenshot-20201112180001.png
mimo to nadal uzyskuję błąd
używałem też w migracjach from django.contrib.postgres.operations import TrigramExtension ale bez rezultatów
Jakieś pomysły?

Kopiuj
ProgrammingError at /search/

function similarity(character varying, tsquery) does not exist
LINE 1: ...ption", '')), 'B')), websearch_to_tsquery('n')) + SIMILARITY...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
Kopiuj
return Book.objects.annotate(rank=SearchRank(search_vector,query)+trigram_similarity).filter(rank__gte=0.3).order_by('-rank')