1CREATE TEXT SEARCH PARSER(7)     SQL Commands     CREATE TEXT SEARCH PARSER(7)
2
3
4

NAME

6       CREATE TEXT SEARCH PARSER - define a new text search parser
7
8

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

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

COMPATIBILITY

65       There is no CREATE TEXT SEARCH PARSER statement in the SQL standard.
66

SEE ALSO

68       ALTER  TEXT  SEARCH  PARSER  [alter_text_search_parser(7)],  DROP  TEXT
69       SEARCH PARSER [drop_text_search_parser(7)]
70
71
72
73SQL - Language Statements         2014-02-17      CREATE TEXT SEARCH PARSER(7)
Impressum