mirror of
https://github.com/miniflux/v2.git
synced 2024-10-02 15:21:14 +02:00
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
244 B
SQL
3 lines
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); |