Обсуждение: [ADMIN] localized fulltext search

Поиск
Список
Период
Сортировка

[ADMIN] localized fulltext search

От
Viktor Bojović
Дата:
i have to develop some application which uses croatian fulltext search. 
How can i add missing text configuration?

postgres=# SELECT *
FROM ts_debug('croatian', 'Ko ima kucu kuci');
ERROR:  text search configuration "croatian" does not exist
LINE 2: FROM ts_debug('croatian', 'Ko ima kucu kuci');
                      ^
Thanx in advance

--
---------------------------------------
Viktor Bojović 

Re: [ADMIN] localized fulltext search

От
Tom Lane
Дата:
=?UTF-8?Q?Viktor_Bojovi=C4=87?= <viktor.bojovic@gmail.com> writes:
> i have to develop some application which uses croatian fulltext search.
> How can i add missing text configuration?

There's none supplied with Postgres, so you'd have to put together your
own.  See sections 12.5-12.8 in the manual (Parsers through Testing and
Debugging Text Search).  It looks like there's an ispell Croatian
dictionary available, so it shouldn't take long to put together at least
basic support with an ispell dictionary.

            regards, tom lane