]> begriffs open source - ai-pg/blob - full-docs/txt/textsearch-psql.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / textsearch-psql.txt
1
2 12.10. psql Support #
3
4    Information about text search configuration objects can be obtained in
5    psql using a set of commands:
6 \dF{d,p,t}[+] [PATTERN]
7
8    An optional + produces more details.
9
10    The optional parameter PATTERN can be the name of a text search object,
11    optionally schema-qualified. If PATTERN is omitted then information
12    about all visible objects will be displayed. PATTERN can be a regular
13    expression and can provide separate patterns for the schema and object
14    names. The following examples illustrate this:
15 => \dF *fulltext*
16        List of text search configurations
17  Schema |  Name        | Description
18 --------+--------------+-------------
19  public | fulltext_cfg |
20
21 => \dF *.fulltext*
22        List of text search configurations
23  Schema   |  Name        | Description
24 ----------+----------------------------
25  fulltext | fulltext_cfg |
26  public   | fulltext_cfg |
27
28    The available commands are:
29
30    \dF[+] [PATTERN]
31           List text search configurations (add + for more detail).
32
33 => \dF russian
34             List of text search configurations
35    Schema   |  Name   |            Description
36 ------------+---------+------------------------------------
37  pg_catalog | russian | configuration for russian language
38
39 => \dF+ russian
40 Text search configuration "pg_catalog.russian"
41 Parser: "pg_catalog.default"
42       Token      | Dictionaries
43 -----------------+--------------
44  asciihword      | english_stem
45  asciiword       | english_stem
46  email           | simple
47  file            | simple
48  float           | simple
49  host            | simple
50  hword           | russian_stem
51  hword_asciipart | english_stem
52  hword_numpart   | simple
53  hword_part      | russian_stem
54  int             | simple
55  numhword        | simple
56  numword         | simple
57  sfloat          | simple
58  uint            | simple
59  url             | simple
60  url_path        | simple
61  version         | simple
62  word            | russian_stem
63
64    \dFd[+] [PATTERN]
65           List text search dictionaries (add + for more detail).
66
67 => \dFd
68                              List of text search dictionaries
69    Schema   |      Name       |                        Description
70 ------------+-----------------+-------------------------------------------------
71 ----------
72  pg_catalog | arabic_stem     | snowball stemmer for arabic language
73  pg_catalog | armenian_stem   | snowball stemmer for armenian language
74  pg_catalog | basque_stem     | snowball stemmer for basque language
75  pg_catalog | catalan_stem    | snowball stemmer for catalan language
76  pg_catalog | danish_stem     | snowball stemmer for danish language
77  pg_catalog | dutch_stem      | snowball stemmer for dutch language
78  pg_catalog | english_stem    | snowball stemmer for english language
79  pg_catalog | estonian_stem   | snowball stemmer for estonian language
80  pg_catalog | finnish_stem    | snowball stemmer for finnish language
81  pg_catalog | french_stem     | snowball stemmer for french language
82  pg_catalog | german_stem     | snowball stemmer for german language
83  pg_catalog | greek_stem      | snowball stemmer for greek language
84  pg_catalog | hindi_stem      | snowball stemmer for hindi language
85  pg_catalog | hungarian_stem  | snowball stemmer for hungarian language
86  pg_catalog | indonesian_stem | snowball stemmer for indonesian language
87  pg_catalog | irish_stem      | snowball stemmer for irish language
88  pg_catalog | italian_stem    | snowball stemmer for italian language
89  pg_catalog | lithuanian_stem | snowball stemmer for lithuanian language
90  pg_catalog | nepali_stem     | snowball stemmer for nepali language
91  pg_catalog | norwegian_stem  | snowball stemmer for norwegian language
92  pg_catalog | portuguese_stem | snowball stemmer for portuguese language
93  pg_catalog | romanian_stem   | snowball stemmer for romanian language
94  pg_catalog | russian_stem    | snowball stemmer for russian language
95  pg_catalog | serbian_stem    | snowball stemmer for serbian language
96  pg_catalog | simple          | simple dictionary: just lower case and check for
97  stopword
98  pg_catalog | spanish_stem    | snowball stemmer for spanish language
99  pg_catalog | swedish_stem    | snowball stemmer for swedish language
100  pg_catalog | tamil_stem      | snowball stemmer for tamil language
101  pg_catalog | turkish_stem    | snowball stemmer for turkish language
102  pg_catalog | yiddish_stem    | snowball stemmer for yiddish language
103
104    \dFp[+] [PATTERN]
105           List text search parsers (add + for more detail).
106
107 => \dFp
108         List of text search parsers
109    Schema   |  Name   |     Description
110 ------------+---------+---------------------
111  pg_catalog | default | default word parser
112 => \dFp+
113     Text search parser "pg_catalog.default"
114      Method      |    Function    | Description
115 -----------------+----------------+-------------
116  Start parse     | prsd_start     |
117  Get next token  | prsd_nexttoken |
118  End parse       | prsd_end       |
119  Get headline    | prsd_headline  |
120  Get token types | prsd_lextype   |
121
122         Token types for parser "pg_catalog.default"
123    Token name    |               Description
124 -----------------+------------------------------------------
125  asciihword      | Hyphenated word, all ASCII
126  asciiword       | Word, all ASCII
127  blank           | Space symbols
128  email           | Email address
129  entity          | XML entity
130  file            | File or path name
131  float           | Decimal notation
132  host            | Host
133  hword           | Hyphenated word, all letters
134  hword_asciipart | Hyphenated word part, all ASCII
135  hword_numpart   | Hyphenated word part, letters and digits
136  hword_part      | Hyphenated word part, all letters
137  int             | Signed integer
138  numhword        | Hyphenated word, letters and digits
139  numword         | Word, letters and digits
140  protocol        | Protocol head
141  sfloat          | Scientific notation
142  tag             | XML tag
143  uint            | Unsigned integer
144  url             | URL
145  url_path        | URL path
146  version         | Version number
147  word            | Word, all letters
148 (23 rows)
149
150    \dFt[+] [PATTERN]
151           List text search templates (add + for more detail).
152
153 => \dFt
154                            List of text search templates
155    Schema   |   Name    |                        Description
156 ------------+-----------+-------------------------------------------------------
157 ----
158  pg_catalog | ispell    | ispell dictionary
159  pg_catalog | simple    | simple dictionary: just lower case and check for stopw
160 ord
161  pg_catalog | snowball  | snowball stemmer
162  pg_catalog | synonym   | synonym dictionary: replace word by its synonym
163  pg_catalog | thesaurus | thesaurus dictionary: phrase by phrase substitution