|
| 1 | +<!-- doc/src/sgml/hunspell-ru-ru.sgml --> |
| 2 | + |
| 3 | +<sect1 id="hunspell-ru-ru" xreflabel="hunspell_ru_ru"> |
| 4 | + <title>hunspell_ru_ru</title> |
| 5 | + |
| 6 | + <indexterm zone="hunspell-ru-ru"> |
| 7 | + <primary>hunspell_ru_ru</primary> |
| 8 | + </indexterm> |
| 9 | + |
| 10 | + <para> |
| 11 | + <filename>hunspell_ru_ru</filename> provides Russian <application>Hunspell</> |
| 12 | + dictionary. During installation the module, following actions are performed: |
| 13 | + </para> |
| 14 | + |
| 15 | + <itemizedlist> |
| 16 | + <listitem> |
| 17 | + <para> |
| 18 | + Dictionary and affixes files are copied to the |
| 19 | + <filename>$SHAREDIR/tsearch_data</filename> directory. |
| 20 | + </para> |
| 21 | + </listitem> |
| 22 | + <listitem> |
| 23 | + <para> |
| 24 | + <literal>public.russian_hunspell</literal> dictionary is created: |
| 25 | + |
| 26 | +<programlisting> |
| 27 | +CREATE TEXT SEARCH DICTIONARY public.russian_hunspell ( |
| 28 | + TEMPLATE = ispell, |
| 29 | + DictFile = ru_ru, |
| 30 | + AffFile = ru_ru, |
| 31 | + StopWords = russian |
| 32 | +); |
| 33 | +</programlisting> |
| 34 | + |
| 35 | + </para> |
| 36 | + </listitem> |
| 37 | + <listitem> |
| 38 | + <para> |
| 39 | + <literal>public.russian</literal> text search configuration is created: |
| 40 | + |
| 41 | +<programlisting> |
| 42 | +CREATE TEXT SEARCH CONFIGURATION public.russian ( |
| 43 | + COPY = pg_catalog.simple |
| 44 | +); |
| 45 | + |
| 46 | +ALTER TEXT SEARCH CONFIGURATION public.russian |
| 47 | + ALTER MAPPING FOR asciiword, asciihword, hword_asciipart |
| 48 | + WITH public.russian_hunspell, pg_catalog.english_stem; |
| 49 | + |
| 50 | +ALTER TEXT SEARCH CONFIGURATION public.russian |
| 51 | + ALTER MAPPING FOR word, hword, hword_part |
| 52 | + WITH public.russian_hunspell, pg_catalog.russian_stem; |
| 53 | +</programlisting> |
| 54 | + |
| 55 | + </para> |
| 56 | + </listitem> |
| 57 | + </itemizedlist> |
| 58 | + |
| 59 | +</sect1> |