Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords
Дата
Msg-id Pine.LNX.4.64.0711142023400.7787@sn.sai.msu.ru
обсуждение исходный текст
Ответ на Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 14 Nov 2007, Tom Lane wrote:

> Oleg Bartunov <oleg@sai.msu.su> writes:
>> Let's consider one example - removing accents.
>> In the past I always recommend people to use regex functions before
>> to_tsvector conversion to remove accents, but recently I was noticed that
>> such trick doesn't work with headline(). So, the only way is to have
>> special dictionary dict_remove_accent before, which  works as a filter.
>
>> I don't remember why do we left this for future releases, though.
>
> That would require a system-to-dictionary API change (to be able to
> modify the token under inspection), no?  So it's certainly something

It requires one reserved option for dictionaries and  ability to get dictionary
option.  Unless somebody have dictionary with the same option, this change
looks harmless.

> I'd say is too late for 8.3.

yes, probably we get better idea.

>
> One thought that came to mind is that the option name should be just
> "Accept" not "AcceptAll".  To me "All" implies that it would accept
> *everything* ... including stopwords.

wait, I remind the problem with filters. How it will works with thesaurus ?

     Regards,
         Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords