1CREATE TEXT SEARCH PARSER(P7o)stgreSQL 11.6 DocumentatCiRoEnATE TEXT SEARCH PARSER(7)
2
3
4

NAME

6       CREATE_TEXT_SEARCH_PARSER - define a new text search parser
7

SYNOPSIS

9       CREATE TEXT SEARCH PARSER name (
10           START = start_function ,
11           GETTOKEN = gettoken_function ,
12           END = end_function ,
13           LEXTYPES = lextypes_function
14           [, HEADLINE = headline_function ]
15       )
16

DESCRIPTION

18       CREATE TEXT SEARCH PARSER creates a new text search parser. A text
19       search parser defines a method for splitting a text string into tokens
20       and assigning types (categories) to the tokens. A parser is not
21       particularly useful by itself, but must be bound into a text search
22       configuration along with some text search dictionaries to be used for
23       searching.
24
25       If a schema name is given then the text search parser is created in the
26       specified schema. Otherwise it is created in the current schema.
27
28       You must be a superuser to use CREATE TEXT SEARCH PARSER. (This
29       restriction is made because an erroneous text search parser definition
30       could confuse or even crash the server.)
31
32       Refer to Chapter 12 for further information.
33

PARAMETERS

35       name
36           The name of the text search parser to be created. The name can be
37           schema-qualified.
38
39       start_function
40           The name of the start function for the parser.
41
42       gettoken_function
43           The name of the get-next-token function for the parser.
44
45       end_function
46           The name of the end function for the parser.
47
48       lextypes_function
49           The name of the lextypes function for the parser (a function that
50           returns information about the set of token types it produces).
51
52       headline_function
53           The name of the headline function for the parser (a function that
54           summarizes a set of tokens).
55
56       The function names can be schema-qualified if necessary. Argument types
57       are not given, since the argument list for each type of function is
58       predetermined. All except the headline function are required.
59
60       The arguments can appear in any order, not only the one shown above.
61

COMPATIBILITY

63       There is no CREATE TEXT SEARCH PARSER statement in the SQL standard.
64

SEE ALSO

66       ALTER TEXT SEARCH PARSER (ALTER_TEXT_SEARCH_PARSER(7)), DROP TEXT
67       SEARCH PARSER (DROP_TEXT_SEARCH_PARSER(7))
68
69
70
71PostgreSQL 11.6                      2019         CREATE TEXT SEARCH PARSER(7)
Impressum