Fixed typos in docs/ref/contrib/postgres/search.txt
This commit is contained in:
parent
08c723fbae
commit
46e2010460
|
@ -217,7 +217,7 @@ Usage example::
|
||||||
>>> Author.objects.annotate(
|
>>> Author.objects.annotate(
|
||||||
... similarity=TrigramSimilarity('name', test),
|
... similarity=TrigramSimilarity('name', test),
|
||||||
... ).filter(similarity__gt=0.3).order_by('-similarity')
|
... ).filter(similarity__gt=0.3).order_by('-similarity')
|
||||||
[<Author: Katy Stephens>, <Author: Stephen Keats>]
|
[<Author: Katy Stevens>, <Author: Stephen Keats>]
|
||||||
|
|
||||||
``TrigramDistance``
|
``TrigramDistance``
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -238,4 +238,4 @@ Usage example::
|
||||||
>>> Author.objects.annotate(
|
>>> Author.objects.annotate(
|
||||||
... distance=TrigramDistance('name', test),
|
... distance=TrigramDistance('name', test),
|
||||||
... ).filter(distance__lte=0.7).order_by('distance')
|
... ).filter(distance__lte=0.7).order_by('distance')
|
||||||
[<Author: Katy Stephens>, <Author: Stephen Keats>]
|
[<Author: Katy Stevens>, <Author: Stephen Keats>]
|
||||||
|
|
Loading…
Reference in New Issue