a614f98063
- The max size for tsvector is 1 MiB - We index only the first million of characters, it should be enough for most feed entries.
3 lines
No EOL
244 B
SQL
3 lines
No EOL
244 B
SQL
alter table entries add column document_vectors tsvector;
|
|
update entries set document_vectors = to_tsvector(substring(title || ' ' || coalesce(content, '') for 1000000));
|
|
create index document_vectors_idx on entries using gin(document_vectors); |