Re: tsearch partial word

Поиск
Список
Период
Сортировка
От Hannes Dorbath
Тема Re: tsearch partial word
Дата
Msg-id 4444908D.6050706@theendofthetunnel.de
обсуждение исходный текст
Ответ на tsearch partial word  ("Yudie Pg" <yudiepg@gmail.com>)
Список pgsql-general
On 17.04.2006 21:48, Yudie Pg wrote:
> Is it possible to search partial word as *like '%...%'* in tsearch?

You can create a table with all the unique lexems (see pg_trgm doc on
how to do that) use LIKE %<whatever>% on it, join the matching lexems
with | in your ts_query..

It works ok as long as the count of returned lexems is low.. at some
point a seq scan would be faster again, so you might want to add a
threshold to fall back to that..


--
Regards,
Hannes Dorbath

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Postgresql and Creator2 commitChanges()
Следующее
От: "P.MO"
Дата:
Сообщение: select with date_part and month failure....