Search Postgresql Archives

Unaccent: create new dictionary based template

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys!

I'want to run unaccent function with a custom unaccent dictionary

I know that we can do:

Select unaccent('áéíóúñ')
Select unaccent('unaccent', 'áéíóúñ')

Select unaccent('custom_unaccent', 'áéíóúñ)

PG Docs say that we can set the rules for default installed unaccent dictionary:

ALTER TEXT SEARCH DICTIONARY unaccent (RULES='custom_unaccent');

And PG Docs too say that we can create another dictionary based on the template. I think this is the right way to maintain several custom unaccent needs without override default unaccent rules. But I don't know how to create unaccent dictionary from a template.

What dictionary type we must to create? 
Please can show me what are the commands sentences we must to execute to create this "unaccent_custom" dictionary and it will be ready for use in Select unaccent('custom_unaccent', 'áéíóúñ)  ??

Thx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux