I was going through this tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-full-text-search-in-postgresql-on-ubuntu-16-04
Where it is recommended to add a document column as tsvector and applying an index to it.
ALTER TABLE news ADD "document" tsvector;
CREATE INDEX idx_fts_search ON news USING gin(document);
SELECT title, content FROM news WHERE document @@ to_tsquery('Travel | Cure');
How do I implement the document column with sequelize? There is no tsvector data type: http://docs.sequelizejs.com/variable/index.html
(Would this be a good time to try out Knex.js?)
CITEXTas a type in Postgres and never had an issue.