Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
1308d6dd
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1308d6dd
编写于
12月 02, 2007
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove README files now migrated to SGML docs.
上级
ec2ff520
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
2 addition
and
97 deletion
+2
-97
contrib/dict_int/Makefile
contrib/dict_int/Makefile
+1
-2
contrib/dict_int/README.dict_int
contrib/dict_int/README.dict_int
+0
-41
contrib/dict_xsyn/Makefile
contrib/dict_xsyn/Makefile
+1
-2
contrib/dict_xsyn/README.dict_xsyn
contrib/dict_xsyn/README.dict_xsyn
+0
-52
未找到文件。
contrib/dict_int/Makefile
浏览文件 @
1308d6dd
# $PostgreSQL: pgsql/contrib/dict_int/Makefile,v 1.
1 2007/10/15 21:36:50
tgl Exp $
# $PostgreSQL: pgsql/contrib/dict_int/Makefile,v 1.
2 2007/12/02 21:15:38
tgl Exp $
MODULE_big
=
dict_int
OBJS
=
dict_int.o
DATA_built
=
dict_int.sql
DATA
=
uninstall_dict_int.sql
DOCS
=
README.dict_int
REGRESS
=
dict_int
ifdef
USE_PGXS
...
...
contrib/dict_int/README.dict_int
已删除
100644 → 0
浏览文件 @
ec2ff520
Dictionary for integers
=======================
The motivation for this example dictionary is to control the indexing of
integers (signed and unsigned), and, consequently, to minimize the number of
unique words which greatly affect the performance of searching.
* Configuration
The dictionary accepts two options:
- The MAXLEN parameter specifies the maximum length (number of digits)
allowed in an integer word. The default value is 6.
- The REJECTLONG parameter specifies if an overlength integer should be
truncated or ignored. If REJECTLONG=FALSE (default), the dictionary returns
the first MAXLEN digits of the integer. If REJECTLONG=TRUE, the
dictionary treats an overlength integer as a stop word, so that it will
not be indexed.
* Usage
1. Compile and install
2. Load dictionary
psql mydb < dict_int.sql
3. Test it
mydb# select ts_lexize('intdict', '12345678');
ts_lexize
-----------
{123456}
4. Change its options as you wish
mydb# ALTER TEXT SEARCH DICTIONARY intdict (MAXLEN = 4, REJECTLONG = true);
ALTER TEXT SEARCH DICTIONARY
That's all.
contrib/dict_xsyn/Makefile
浏览文件 @
1308d6dd
# $PostgreSQL: pgsql/contrib/dict_xsyn/Makefile,v 1.
2 2007/10/16 15:59:59
tgl Exp $
# $PostgreSQL: pgsql/contrib/dict_xsyn/Makefile,v 1.
3 2007/12/02 21:15:38
tgl Exp $
MODULE_big
=
dict_xsyn
OBJS
=
dict_xsyn.o
DATA_built
=
dict_xsyn.sql
DATA
=
uninstall_dict_xsyn.sql
DATA_TSEARCH
=
xsyn_sample.rules
DOCS
=
README.dict_xsyn
REGRESS
=
dict_xsyn
ifdef
USE_PGXS
...
...
contrib/dict_xsyn/README.dict_xsyn
已删除
100644 → 0
浏览文件 @
ec2ff520
Extended Synonym dictionary
===========================
This is a simple synonym dictionary. It replaces words with groups of their
synonyms, and so makes it possible to search for a word using any of its
synonyms.
* Configuration
It accepts the following options:
- KEEPORIG controls whether the original word is included, or only its
synonyms. Default is 'true'.
- RULES is the base name of the file containing the list of synonyms.
This file must be in $(prefix)/share/tsearch_data/, and its name must
end in ".rules" (which is not included in the RULES parameter).
The rules file has the following format:
- Each line represents a group of synonyms for a single word, which is
given first on the line. Synonyms are separated by whitespace:
word syn1 syn2 syn3
- Sharp ('#') sign is a comment delimiter. It may appear at any position
inside the line. The rest of the line will be skipped.
Look at xsyn_sample.rules, which is installed in $(prefix)/share/tsearch_data/,
for an example.
* Usage
1. Compile and install
2. Load dictionary
psql mydb < dict_xsyn.sql
3. Test it
mydb=# SELECT ts_lexize('xsyn','word');
ts_lexize
----------------
{word,syn1,syn2,syn3)
4. Change the dictionary options as you wish
mydb# ALTER TEXT SEARCH DICTIONARY xsyn (KEEPORIG=false);
ALTER TEXT SEARCH DICTIONARY
That's all.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录