|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sai.msu.su/~megera/postgres/fts/doc/sql-fts-createmap.html
Дата изменения: Unknown Дата индексирования: Sun Apr 13 07:52:34 2008 Кодировка: Поисковые слова: asteroid |
| Full-Text Search in PostgreSQL: A Gentle Introduction | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Fast Forward | Next | |
CREATE FULLTEXT MAPPING bind token of type lexemetypename and full-text dictionaries in given configuration cfgname. The order of dictionaries is important, since lexeme processed in that order.
The name (optionally schema-qualified) of the full-text configuration.
tokentypename is the type of token full-text mapping created for.
dictname1 is the name of full-text dictionary, which binds to the tokentypename.
In example below, we first create testcfg full-text configuration and then create mapping for token of types lword,lhword,lpart_hword.
=# CREATE FULLTEXT CONFIGURATION testcfg LOCALE 'testlocale' LIKE russian_utf8;
CREATE FULLTEXT CONFIGURATION
=# CREATE FULLTEXT MAPPING ON testcfg FOR lword,lhword,lpart_hword WITH simple,en_stem;
CREATE FULLTEXT MAPPING
=# \dF+ testcfg
Configuration 'testcfg'
Parser name: 'default'
Locale: 'testlocale'
Token | Dictionaries
-------------+----------------
lhword | simple,en_stem
lpart_hword | simple,en_stem
lword | simple,en_stem