]>
Git — Sourcephile - gargantext.git/blob - devops/postgres/upgrade/0.0.4.sql
3 DROP COLUMN IF EXISTS search_title
,
4 DROP COLUMN IF EXISTS tsvector
;
6 ALTER TABLE nodes
ADD COLUMN search_title tsvector
;
7 UPDATE nodes
SET search_title
= to_tsvector('english', coalesce("hyperdata"->>'title', '') ||
' ' ||
coalesce("hyperdata"->>'abstract', ''));
8 CREATE INDEX search_title_idx
ON nodes
USING GIN (search_title
);