Re: Term positions in GIN fulltext index

Поиск
Список
Период
Сортировка
От Marcin Mańk
Тема Re: Term positions in GIN fulltext index
Дата
Msg-id CAK61fk6-oG3s+wK3aJXwrbk5uAEspu__-pGc+D3TBzyH_nCDmw@mail.gmail.com
обсуждение исходный текст
Ответ на Term positions in GIN fulltext index  (Yoann Moreau <yoann.moreau@univ-avignon.fr>)
Список pgsql-hackers
On Thu, Nov 3, 2011 at 4:52 PM, Yoann Moreau
<yoann.moreau@univ-avignon.fr> wrote:
> I'd need a function like this :
> select term_positions(text, 'get') from docs;
>  id_doc | positions
> --------+-----------
>      1 |     {2,6}
>      2 |       {3}
>

check this out:
http://www.postgresql.org/docs/current/static/textsearch-debugging.html
ts_debug does what You want, and more. Look at it's source - it`s a
plain sql function, You can make something based on it.

Greetings
Marcin Mańk


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Term positions in GIN fulltext index
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: Term positions in GIN fulltext index