Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sai.msu.su/~megera/postgres/fts/doc/sql-fts-altermap.html
Дата изменения: Unknown Дата индексирования: Sun Apr 13 07:51:28 2008 Кодировка: Поисковые слова: annular solar eclipse |
Full-Text Search in PostgreSQL: A Gentle Introduction | ||||
---|---|---|---|---|
Prev | Fast Backward | Fast Forward | Next |
ALTER FULLTEXT MAPPING ON cfgname FOR tokentypename[, ...] WITH dictname1[, ...]; ALTER FULLTEXT MAPPING ON cfgname [FOR tokentypename[, ...] ] REPLACE olddictname TO newdictname;
ALTER FULLTEXT MAPPING change binding of token of tokentypename or create one if binding doesn't exists.
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.
olddictname is the name of full-text dictionary to be replaced by a newdictname.
newdictname is the name of full-text dictionary, which replaces olddictname.
=# ALTER FULLTEXT MAPPING ON testcfg FOR lword WITH simple; ALTER FULLTEXT MAPPING =# ALTER FULLTEXT MAPPING ON testcfg FOR lhword WITH simple,en_stem; ALTER FULLTEXT MAPPING =# \dF+ testcfg Configuration 'testcfg' Parser name: 'default' Locale: 'testlocale' Token | Dictionaries --------+---------------- lhword | simple,en_stem lword | simple