You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to casecom...@googlegroups.com
I have a named scope that I am using pg_search's pg_search_scope with that I would like to return a column that has rank or similarity scores. Is there a way to do this. The pg_search_scope gem (https://github.com/cloudcastle/pg_search_scope) has something called select_rank
:select_rank - Include rank in select statement, as {scope_name}_rank)
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to casecom...@googlegroups.com
(Oops I sent that previous message before completing it - sorry.)
Anyway does pg_search have any capability of returning the rank or similarity score as a column or attribute (as pg_search_scope gem seems to). I have an existing pg_search based named scope that works great but need to get the similarity score or ranking to do further processing with. Below is the pg_search_scope call that I use with pg_search today.
Any insights would be appreciated.
Grant Hutchins
unread,
Sep 2, 2012, 11:11:59 AM9/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to casecom...@googlegroups.com, casecom...@googlegroups.com
The rank already comes back as a float column called pg_search_rank
Hopefully that is exactly what you wanted! Let us know if otherwise and we can see what we can do.