Skip to content

Commit 6efae5b

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 a dictionary.
1 parent cb0d539 commit 6efae5b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy