]> begriffs open source - ai-pg/blob - full-docs/txt/sql-createtsdictionary.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-createtsdictionary.txt
1
2 CREATE TEXT SEARCH DICTIONARY
3
4    CREATE TEXT SEARCH DICTIONARY — define a new text search dictionary
5
6 Synopsis
7
8 CREATE TEXT SEARCH DICTIONARY name (
9     TEMPLATE = template
10     [, option = value [, ... ]]
11 )
12
13 Description
14
15    CREATE TEXT SEARCH DICTIONARY creates a new text search dictionary. A
16    text search dictionary specifies a way of recognizing interesting or
17    uninteresting words for searching. A dictionary depends on a text
18    search template, which specifies the functions that actually perform
19    the work. Typically the dictionary provides some options that control
20    the detailed behavior of the template's functions.
21
22    If a schema name is given then the text search dictionary is created in
23    the specified schema. Otherwise it is created in the current schema.
24
25    The user who defines a text search dictionary becomes its owner.
26
27    Refer to Chapter 12 for further information.
28
29 Parameters
30
31    name
32           The name of the text search dictionary to be created. The name
33           can be schema-qualified.
34
35    template
36           The name of the text search template that will define the basic
37           behavior of this dictionary.
38
39    option
40           The name of a template-specific option to be set for this
41           dictionary.
42
43    value
44           The value to use for a template-specific option. If the value is
45           not a simple identifier or number, it must be quoted (but you
46           can always quote it, if you wish).
47
48    The options can appear in any order.
49
50 Examples
51
52    The following example command creates a Snowball-based dictionary with
53    a nonstandard list of stop words.
54 CREATE TEXT SEARCH DICTIONARY my_russian (
55     template = snowball,
56     language = russian,
57     stopwords = myrussian
58 );
59
60 Compatibility
61
62    There is no CREATE TEXT SEARCH DICTIONARY statement in the SQL
63    standard.
64
65 See Also
66
67    ALTER TEXT SEARCH DICTIONARY, DROP TEXT SEARCH DICTIONARY