Skip to content

Can you specify SearchVector weights with UpdateSearchVector? #210

Answered by wesleykendall
mrcoles asked this question in Q&A
Discussion options

You must be logged in to vote

pgtrigger is calling Postgres's tsvector_update_trigger utility function. This function does not seem to support adding weights to each column to the best of my knowledge.

If you want to sync a vector with weighted fields, your best bet for now is to write a custom trigger to do that

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrcoles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants