Cannot enable text search for CJK with `pg_jieba`
Hi! I try to follow the docs to enable text search: https://docs.pleroma.social/backend/configuration/howto_search_cjk/ .
For the convenience I use pg_jieba.
After make install
and create extension pg_jieba;
, it works with ts_debug
. So I try:
./bin/pleroma_ctl database set_text_search_config public.jiebacfg
but it returns errors:
Current default_text_search_config: pg_catalog.english
Update default_text_search_config: public.jiebacfg
Error: [
%{
code: "42704",
file: "ts_cache.c",
line: "617",
message: "text search config \"public.jiebacfg\" does not exist",
routine: "check_TSCurrentConfig",
...
}
]
After restart Pleroma and PostgreSQL, this issue still exists. That's weird. I can see it in psql console with command \dF
, but I can't set it as default search configuration.
Pleroma: 2.3.0-1-gb221d77a
Edited by debula