2018-07-04 20:40:03 -04:00
|
|
|
alter table entries add column document_vectors tsvector;
|
2018-10-20 00:40:59 -04:00
|
|
|
update entries set document_vectors = to_tsvector(substring(title || ' ' || coalesce(content, '') for 1000000));
|
2018-07-04 20:40:03 -04:00
|
|
|
create index document_vectors_idx on entries using gin(document_vectors);
|