Re: [GENERAL] Text search dictionary vs. the C locale
| От | Tom Lane | ||
|---|---|---|---|
| Тема | Re: [GENERAL] Text search dictionary vs. the C locale | ||
| Дата | |||
| Msg-id | 28705.1499011609@sss.pgh.pa.us обсуждение |
||
| Ответ на | [GENERAL] Text search dictionary vs. the C locale (twoflower <standa.kurik@gmail.com>) | ||
| Ответы |
Re: [GENERAL] Text search dictionary vs. the C locale
Re: [GENERAL] Text search dictionary vs. the C locale Re: [GENERAL] Text search dictionary vs. the C locale [GENERAL] Using 'WITH SELECT' Results Do Not Match 'SELECT FROM
twoflower <standa.kurik@gmail.com> writes:
> I am having problems creating an Ispell-based text search dictionary for
> Czech language.
> Issuing the following command:
> create text search dictionary czech_ispell (
> template = ispell,
> dictfile = czech_ispell,
> affFile = czech_ispell
> );
> ends with
> ERROR: syntax error
> CONTEXT: line 252 of configuration file
> "/usr/share/postgresql/9.6/tsearch_data/czech_ispell.affix": " . > TŘIA
> The dictionary files are in UTF-8. The database cluster was initialized with
> initdb --locale=C --encoding=UTF8
Presumably the problem is that the dictionary file parsing functions
reject anything that doesn't satisfy t_isalpha() (unless it matches
t_isspace()) and in C locale that's not going to accept very much.
I wonder why we're doing it like that. It seems like it'd often be
useful to load dictionary files that don't match the database's
prevailing locale. Do we really need the t_isalpha tests, or would
it be good enough to assume that anything that isn't t_isspace is
part of a word?
regards, tom lane
В списке pgsql-general по дате отправления: Есть вопросы? Напишите нам!✖
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера |