postgres with chinese textsearch support just for my miniflux compatibility
add zhparser and pg_jieba
git pull
Docker build -t name:tag .
- In
postgresql.conf
, setdefault_text_search_config
to'chinese'
- In
psql
, connect to database and run:
UPDATE entries SET document_vectors = setweight(to_tsvector(left(coalesce(title, ''), 500000)), 'A') || setweight(to_tsvector(left(coalesce(content, ''), 500000)), 'B');
(This comes from miniflux. But also split the link in content to words, looking for better way.)