Join GitHub today
Improve search results #323
This PR improved search result, which makes the results ordered by relevance, should work for all languages.
This PR improves search only for new entires, because the following only affects new entires:
SET document_vectors = setweight(to_tsvector(coalesce(title, '')), 'A') || setweight(to_tsvector(coalesce(content, '')), 'B')
To make Chinese search work, user needs a customized
Here is a docker image used by me, in case you want to put it in wiki or document.
git clone https://github.com/qjebbs/zhparser-docker cd zhparser-docker docker build -t postgresql-zhparser . docker run -d --name minifluxdb \ --restart=always \ -e POSTGRES_USER=miniflux \ -e POSTGRES_PASSWORD=miniflux \ postgresql-zhparser