Skip to content

Instantly share code, notes, and snippets.

@lettergram
Created July 8, 2018 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lettergram/3ef7a3538b9b6e4ce203b2eca7999cfe to your computer and use it in GitHub Desktop.
Save lettergram/3ef7a3538b9b6e4ce203b2eca7999cfe to your computer and use it in GitHub Desktop.
UPDATE comments SET tsv_comment_text = setweight(to_tsvector(coalesce(story_title,'')), 'A')
|| setweight(to_tsvector(coalesce(comment_text,'')), 'B');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment