1CREATE TEXT SEARCH DICTIONPAoRsYt(g7r)eSQL 11.6 DocumeCnRtEaAtTiEonTEXT SEARCH DICTIONARY(7)
2
3
4
6 CREATE_TEXT_SEARCH_DICTIONARY - define a new text search dictionary
7
9 CREATE TEXT SEARCH DICTIONARY name (
10 TEMPLATE = template
11 [, option = value [, ... ]]
12 )
13
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
30 name
31 The name of the text search dictionary to be created. The name can
32 be schema-qualified.
33
34 template
35 The name of the text search template that will define the basic
36 behavior of this dictionary.
37
38 option
39 The name of a template-specific option to be set for this
40 dictionary.
41
42 value
43 The value to use for a template-specific option. If the value is
44 not a simple identifier or number, it must be quoted (but you can
45 always quote it, if you wish).
46
47 The options can appear in any order.
48
50 The following example command creates a Snowball-based dictionary with
51 a nonstandard list of stop words.
52
53 CREATE TEXT SEARCH DICTIONARY my_russian (
54 template = snowball,
55 language = russian,
56 stopwords = myrussian
57 );
58
60 There is no CREATE TEXT SEARCH DICTIONARY statement in the SQL
61 standard.
62
64 ALTER TEXT SEARCH DICTIONARY (ALTER_TEXT_SEARCH_DICTIONARY(7)), DROP
65 TEXT SEARCH DICTIONARY (DROP_TEXT_SEARCH_DICTIONARY(7))
66
67
68
69PostgreSQL 11.6 2019 CREATE TEXT SEARCH DICTIONARY(7)