Re: Full-text searching in postgres with qsrf

2008-05-13 Thread Thomas Guettler
Dave Lowe schrieb: > Here's the Django side: > > results = Product.objects.extra( > select={ > 'rank': "rank_cd(textsearchable, query, 32)", > }, > tables=["to_tsquery(%s) as query"], >

Re: Full-text searching in postgres with qsrf

2008-05-12 Thread Dave Lowe
Here's the Django side: results = Product.objects.extra( select={ 'rank': "rank_cd(textsearchable, query, 32)", }, tables=["to_tsquery(%s) as query"],

Full-text searching in postgres with qsrf

2008-05-12 Thread Dave Lowe
Since the merge of queryset-refactor into trunk, my full-text searches have broken. I'm using the method outlined in the PostgreSQL manual in section 12.3.3 (http://postgresql.com.cn/docs/8.3/static/textsearch- controls.html#TEXTSEARCH-RANKING). The error message I get is: relation "to_tsquery(1)