full_text ranking search from postgres with ModelLoader #754
Unanswered
abarbosa94
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to use a declarative syntax from ModelLoader with Gino to reproduce the following query:
But I'm having real trouble to use the rank method with loaders. This is the query that I got so far:
I've noticed that Gino does support functions but when I tried to use func.set_weight(func.ts_vector('text'), 'A').concat(func.set_weight(func.ts_vector('title'), 'B')).match(func.ts_query('search_expr')) my code breaks.
Moreover, I have no idea how I adapt the func.ts_rank_cd for this scenario
Could Anyone please help?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions