postgres full text search
CREATE EXTENSION zhparser;
CREATE TEXT SEARCH CONFIGURATION chinese_zh (PARSER = zhparser);
ALTER TEXT SEARCH CONFIGURATION chinese_zh ADD MAPPING FOR n,v,a,i,e,l WITH simple;
config descriptions:
- "chinese_zh" is a custom name, change to what you like.
- "n,v,a,i,e,l,t" is the token types, unmapped token types would not be used for document tockenize. Use \dFp+ zhparser to list all token types zhparser populates.
from https://github.com/chen-xin/docker_zhparser
- postgres: from postgres
- postgis: symbolspace/postgis
- zhparser: https://github.com/amutu/zhparser/
- from symbolspace/postgis:12.8
- docker image : symbolspace/zhparser:12¡¢symbolspace/zhparser:12.8
- from symbolspace/postgis:13.4
- docker image : symbolspace/zhparser:13¡¢symbolspace/zhparser:13.4¡¢13¡¢symbolspace/zhparser:latest
- from symbolspace/postgis:14beta3
- docker image : symbolspace/zhparser:14¡¢symbolspace/zhparser:14beta3