Skip to content
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

Is there a way to weight the rum_ts_score function? #105

Open
jalustig opened this issue Apr 8, 2022 · 0 comments
Open

Is there a way to weight the rum_ts_score function? #105

jalustig opened this issue Apr 8, 2022 · 0 comments

Comments

@jalustig
Copy link

jalustig commented Apr 8, 2022

I have a tsvector column that combines texts with different weights (e.g. title and body of the document are weighted differently).

Using the built-in sql function ts_rank, you can add a weighting component to the function, e.g. ts_rank('{0.8, 1.0}', my_tsvector, to_tsquery('test'))

Is there a way to do a similar weighting using the RUM function, rum_ts_score?

I checked the source and the function does have weights, but from what I can tell this isn't made available via the function itself. Is there a way to use weighting with the RUM function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant