-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
How to use ts_rank_cd on full text search? #1758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @jonasstenberg, You'll need to create a stored procedure for that: https://postgrest.org/en/stable/api.html#stored-procedures |
Alright, thanks! Don't know Haskell myself but is this a feature planned to be included or is it meant to be implemented in an RPC in the future too? |
At this point this is more of a "how would we even do this?" question. Afaik, there hasn't been a suggestion how this could be included in the regular query syntax, yet. I'm failing to come up with something on the spot. |
Ok, I understand. I don't really know how such a query syntax would look either so I guess I'd have to settle with the rpc option for now. Many thanks for the answers though! |
There was an idea on #915 (comment) for calling functions on the url. It could potentially call |
I understood this as only taking column names as function arguments...
... and I think So "a while" is a very nice way to put it ;). |
Just hit this wall as well. Any chances of this getting put on the roadmap? |
Seeing that FTS rank is a common use case (mentioned on #3820), I was thinking to have a special
Maybe we can do that with the idea on #2578 (comment) |
Environment
Description of issue
When using full text search that's documented here: https://postgrest.org/en/stable/api.html?highlight=order#full-text-search, how do you use ts_rank_cd (https://www.postgresql.org/docs/13/textsearch-controls.html#TEXTSEARCH-RANKING) to rank the results?
If you provide me with a good example I can perhaps put together a PR with documentation for it.
Thanks!
The text was updated successfully, but these errors were encountered: