Re: Phrase search vs. multi-lexeme tokens

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: Phrase search vs. multi-lexeme tokens
Дата
Msg-id CAPpHfdsK9C-X-ag7ktK=j5dcT0Qo2WWY_gLWgPShe2yQyDBm+g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Phrase search vs. multi-lexeme tokens  (Alexander Korotkov <aekorotkov@gmail.com>)
Ответы Re: Phrase search vs. multi-lexeme tokens  (Neil Chen <carpenter.nail.cz@gmail.com>)
Список pgsql-hackers
On Thu, Jan 7, 2021 at 6:36 AM Alexander Korotkov <aekorotkov@gmail.com> wrote:
>
> > I read your patch over quickly and it seems like a reasonable
> > approach (but sadly underdocumented).  Can we extend the idea
> > to fix the to_tsquery case?
>
> Sure, I'll provide a revised patch.

The next version of the patch is attached.  Now, it just makes
to_tsquery() and websearch_to_tsquery() use phrase operator to connect
multiple lexemes of the same tsquery token.  I leave plainto_tsquery()
aside because it considers the whole argument as a single token.
Changing it would make it an equivalent of phraseto_tsquery().

------
Regards,
Alexander Korotkov

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: strange error reporting
Следующее
От: Robert Haas
Дата:
Сообщение: Re: strange error reporting