Using postgres ts_rank's normalization parameter in django?

77 views
Skip to first unread message

Thomas Nyberg

unread,
Feb 14, 2017, 11:25:51 AM2/14/17
to Django users, Thomas Nyberg
Hello,

I've been looking at the documentation on this page:

https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/search/

I am trying to use the postgres ts_rank function as exposed through
django. The ts_rank function in postgres can be called in (at least) two
ways:

* ts_rank(tsvector, tsquery)
* ts_rank(tsvector, tsquery, normalization)

The normalization integer is documented here (textsearch for normalization):

https://www.postgresql.org/docs/current/static/textsearch-controls.html

I don't see in the documentation where this is exposed in the django
side of things. How do I make use of that option?

Thanks for any help and sorry if I'm just blindly missing something
obvious in the documentation.

Cheers,
Thomas
Reply all
Reply to author
Forward
0 new messages