to_tsvector()
支持多种语言:英语、德语、法语...
如何获得这些语言的完整列表?
有手册中的说明 https://www.postgresql.org/docs/current/textsearch-psql.html如何使用 psql 检索所有信息:
12.10。 psql 支持
有关文本搜索配置对象的信息可以在
psql 使用一组命令:
\dF{d,p,t}[+] [PATTERN]
尤其:
列出文本搜索词典(添加+
了解更多详情)。
=> \dFd
还有更多,看说明书吧。
最终,可能的参数值to_tsvector(), to_tsquery() et al. https://www.postgresql.org/docs/current/functions-textsearch.html#TEXTSEARCH-FUNCTIONS-TABLE由系统目录中的条目定义pg_ts_config https://www.postgresql.org/docs/current/catalog-pg-ts-config.html,从那里你可以得到最终清单。从 Postgres 14 开始:
test=> SELECT cfgname FROM pg_ts_config;
cfgname
------------
simple
arabic
armenian
basque
catalan
danish
dutch
english
finnish
french
german
greek
hindi
hungarian
indonesian
irish
italian
lithuanian
nepali
norwegian
portuguese
romanian
russian
serbian
spanish
swedish
tamil
turkish
yiddish
(29 rows)
但还可以添加更多内容。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)