How to get char indices from text parser | tsvector?

Поиск
Список
Период
Сортировка
От Roman Gurinovich
Тема How to get char indices from text parser | tsvector?
Дата
Msg-id CAOn+SnPL-MVJ4-yZYr_DT7KtOiZB8kdQ8F49GqA6Oc2h4MDoQw@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all, 

is there any possibility to get char "coordinates", not only token "coordinates" from tsvector or, basically, text parser? Like in Elasticsearch 


GET _analyze?text=This fox is brown&analyzer=english
{
"tokens": [
{
  "token": "fox",
  "start_offset": 5,
  "end_offset": 8,

  "type": "",
  "position": 1
}


while in PostgreSQL 

SELECT to_tsvector('This fox is brown')
'brown':4 'fox':2 'is':3 'this':1



--

Best Regards,
Roman Gurinovich


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

Предыдущее
От: "Andrus"
Дата:
Сообщение: Hot standby from Debian to Windows
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is"CPUTF-8" in pg_restore