diff --git a/django/contrib/postgres/search.py b/django/contrib/postgres/search.py index bf966a9d34..9396e78341 100644 --- a/django/contrib/postgres/search.py +++ b/django/contrib/postgres/search.py @@ -388,6 +388,24 @@ class TrigramDistance(TrigramBase): arg_joiner = " <-> " +class TrigramWordDistance(TrigramWordBase): + function = "" + arg_joiner = " <<-> " + + +class TrigramStrictWordDistance(TrigramWordBase): + function = "" + arg_joiner = " <<<-> " + + +class TrigramWordSimilarity(TrigramWordBase): + function = "WORD_SIMILARITY" + + +class TrigramStrictWordSimilarity(TrigramWordBase): + function = "STRICT_WORD_SIMILARITY" + + class LexemeCombinable: BITAND = "&" BITOR = "|"