Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21e3dd9

Browse files
author
Artur Zakirov
committed
Fix hunspell-dict.sgml
1 parent4c49f27 commit21e3dd9

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

‎doc/src/sgml/hunspell-dict.sgml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,26 @@
3030
<row>
3131
<entry>American English</entry>
3232
<entry><filename>hunspell_en_us</filename></entry>
33-
<entry><literal>public.english_hunspell</literal></entry>
34-
<entry><literal>public.english</literal></entry>
33+
<entry><literal>english_hunspell</literal></entry>
34+
<entry><literal>english_hunspell</literal></entry>
3535
</row>
3636
<row>
3737
<entry>Dutch</entry>
3838
<entry><filename>hunspell_nl_nl</filename></entry>
39-
<entry><literal>public.dutch_hunspell</literal></entry>
40-
<entry><literal>public.dutch</literal></entry>
39+
<entry><literal>dutch_hunspell</literal></entry>
40+
<entry><literal>dutch_hunspell</literal></entry>
4141
</row>
4242
<row>
4343
<entry>French</entry>
4444
<entry><filename>hunspell_fr</filename></entry>
45-
<entry><literal>public.french_hunspell</literal></entry>
46-
<entry><literal>public.french</literal></entry>
45+
<entry><literal>french_hunspell</literal></entry>
46+
<entry><literal>french_hunspell</literal></entry>
4747
</row>
4848
<row>
4949
<entry>Russian</entry>
5050
<entry><filename>hunspell_ru_ru</filename></entry>
51-
<entry><literal>public.russian_hunspell</literal></entry>
52-
<entry><literal>public.russian</literal></entry>
51+
<entry><literal>russian_hunspell</literal></entry>
52+
<entry><literal>russian_hunspell</literal></entry>
5353
</row>
5454
</tbody>
5555
</tgroup>
@@ -63,7 +63,7 @@
6363
We can test created configuration:
6464

6565
<programlisting>
66-
SELECT * FROM ts_debug('public.english', 'abilities');
66+
SELECT * FROM ts_debug('english_hunspell', 'abilities');
6767
alias | description | token | dictionaries | dictionary | lexemes
6868
-----------+-----------------+-----------+---------------------------------+------------------+-----------
6969
asciiword | Word, all ASCII | abilities | {english_hunspell,english_stem} | english_hunspell | {ability}
@@ -78,17 +78,17 @@ SELECT * FROM ts_debug('public.english', 'abilities');
7878
create mixed russian-english configuration:
7979

8080
<programlisting>
81-
CREATE TEXT SEARCH CONFIGURATIONpublic.russian_en (
82-
COPY =pg_catalog.simple
81+
CREATE TEXT SEARCH CONFIGURATION russian_en (
82+
COPY = simple
8383
);
8484

85-
ALTER TEXT SEARCH CONFIGURATIONpublic.russian_en
85+
ALTER TEXT SEARCH CONFIGURATION russian_en
8686
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart
87-
WITHpublic.english_hunspell,pg_catalog.english_stem;
87+
WITH english_hunspell, english_stem;
8888

89-
ALTER TEXT SEARCH CONFIGURATIONpublic.russian_en
89+
ALTER TEXT SEARCH CONFIGURATION russian_en
9090
ALTER MAPPING FOR word, hword, hword_part
91-
WITHpublic.russian_hunspell,pg_catalog.russian_stem;
91+
WITH russian_hunspell, russian_stem;
9292
</programlisting>
9393

9494
</para>
@@ -104,7 +104,7 @@ ALTER TEXT SEARCH CONFIGURATION public.russian_en
104104
to use. For example, in this text you can search some words:
105105

106106
<programlisting>
107-
SELECT to_tsvector('public.english', 'The blue whale is the largest animal');
107+
SELECT to_tsvector('english_hunspell', 'The blue whale is the largest animal');
108108
to_tsvector
109109
-----------------------------------------
110110
'animal':7 'blue':2 'large':6 'whale':3
@@ -117,8 +117,8 @@ SELECT to_tsvector('public.english', 'The blue whale is the largest animal');
117117
Search query might looks like this:
118118

119119
<programlisting>
120-
SELECT to_tsvector('public.english', 'The blue whale is the largest animal')
121-
@@ to_tsquery('public.english', 'large & whale');
120+
SELECT to_tsvector('english_hunspell', 'The blue whale is the largest animal')
121+
@@ to_tsquery('english_hunspell', 'large & whale');
122122
?column?
123123
----------
124124
t
@@ -134,7 +134,7 @@ SELECT to_tsvector('public.english', 'The blue whale is the largest animal')
134134
<programlisting>
135135
CREATE TABLE table1 (t varchar);
136136
INSERT INTO table1 VALUES ('The blue whale is the largest animal');
137-
CREATE INDEX t_idx ON table1 USING GIN (to_tsvector('public.english', "t"));
137+
CREATE INDEX t_idx ON table1 USING GIN (to_tsvector('english_hunspell', "t"));
138138
</programlisting>
139139

140140
</para>
@@ -143,8 +143,8 @@ CREATE INDEX t_idx ON table1 USING GIN (to_tsvector('public.english', "t"));
143143
For this table you can execute the following query:
144144

145145
<programlisting>
146-
SELECT * FROM table1 where to_tsvector('public.english', t)
147-
@@ to_tsquery('public.english', 'blue & animal');
146+
SELECT * FROM table1 where to_tsvector('english_hunspell', t)
147+
@@ to_tsquery('english_hunspell', 'blue & animal');
148148
t
149149
--------------------------------------
150150
The blue whale is the largest animal
@@ -154,4 +154,4 @@ SELECT * FROM table1 where to_tsvector('public.english', t)
154154
</para>
155155
</sect2>
156156

157-
</sect1>
157+
</sect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp