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