Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6efae5b

Browse files
committed
Another round of editorialization on the text search documentation.
Notably, standardize on using "token" for the strings output by a parser,while "lexeme" is reserved for the normalized strings produced by adictionary.
1 parentcb0d539 commit6efae5b

File tree

2 files changed

+361
-242
lines changed

2 files changed

+361
-242
lines changed

‎doc/src/sgml/ref/alter_tsdictionary.sgml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsdictionary.sgml,v 1.2 2007/08/22 01:39:44 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsdictionary.sgml,v 1.3 2007/10/17 01:01:28 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -122,6 +122,21 @@ ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian );
122122
<programlisting>
123123
ALTER TEXT SEARCH DICTIONARY my_dict ( language = dutch, StopWords );
124124
</programlisting>
125+
126+
<para>
127+
The following example command <quote>updates</> the dictionary's
128+
definition without actually changing anything.
129+
130+
<programlisting>
131+
ALTER TEXT SEARCH DICTIONARY my_dict ( dummy );
132+
</programlisting>
133+
134+
(The reason this works is that the option removal code doesn't complain
135+
if there is no such option.) This trick is useful when changing
136+
configuration files for the dictionary: the <command>ALTER</> will
137+
force existing database sessions to re-read the configuration files,
138+
which otherwise they would never do if they had read them earlier.
139+
</para>
125140
</refsect1>
126141

127142
<refsect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp