Re: Partial substrings in FTS

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Partial substrings in FTS
Дата
Msg-id 4F955CEF020000250004724A@gw.wicourts.gov
обсуждение исходный текст
Ответ на Partial substrings in FTS  (A J <s5aly@yahoo.com>)
Список pgsql-admin
A J <s5aly@yahoo.com> wrote:
> In FTS, how do I search for partial substrings that don't form a
> English word.
> Example, in the text: 'one hundred thirty four'  I want to find
> the records based on 'hun'
>
> SELECT to_tsvector('one hundred thirty four') @@
> to_tsquery('hun'); does not return anything.

It sounds like trigrams might be a better fit for you than text
search.

http://www.postgresql.org/docs/9.1/static/pgtrgm.html

-Kevin

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

Предыдущее
От: A J
Дата:
Сообщение: Partial substrings in FTS
Следующее
От: Jesper Krogh
Дата:
Сообщение: Re: Partial substrings in FTS