Postgres image with vietnamese full text search
5.4K
Make Vietnamese Great Again !!!
Due to lack of FTS support for vietnamese in postgres. I've make this project to archive it with by collect all the dictionary in the internet, prebuild it for fastest usage.
For more this image is base on postgres image. As an consequence, fts-image will share the same config and enviroment with postgres, as well.
If you are in docker hub, open github to read the latest guideline
Docker image will share the same environment with postgres
docker run hotrungnhan/postgres:alpine
Install full text search dictionary via run sql in database
-- add dictionary
CREATE TEXT SEARCH DICTIONARY vietnamese_hunspell (
TEMPLATE = ispell,
DictFile = "vietnamese",
AffFile = "vietnamese",
Stopwords = "vietnamese"
);
-- add configuration
CREATE TEXT SEARCH CONFIGURATION vietnamese(
COPY = english
);
-- alter parser mapping
ALTER TEXT SEARCH CONFIGURATION vietnamese
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart, word, hword, hword_part
WITH vietnamese_hunspell;
----------------------------------------
docker login
change
IMAGE_REPOSITORYin upgrade.py to your repository
And
./run.sh
Notes: builder will be auto create cross-platform-builder if not existed
Copyright (c) 2022-present, Ho Trung Nhan
Content type
Image
Digest
sha256:dbb0de396…
Size
90.2 MB
Last updated
over 3 years ago
docker pull hotrungnhan/postgres