Full text search bug ('russian' regconfig)
От | egocenter |
---|---|
Тема | Full text search bug ('russian' regconfig) |
Дата | |
Msg-id | 1453547361.20200219113508@yandex.ru обсуждение исходный текст |
Ответы |
Re: Full text search bug ('russian' regconfig)
|
Список | pgsql-bugs |
Hello! Text search doesn't work correct with the EQUAL string in text and query (russian dictionary config), as you can see in example ts_vector receives different from ts_query lexemes for identical text: tsv = 'дан':1 'магазин':2 'нужн':3 'посеща':4 'точн':5 tsq = 'нужн' & 'точн' & 'дан' & 'посещаем' & 'магазин' SELECT (web_query_and @@ ts_title)::INTEGER AS full_title_entries, -- 0 / supposed 1 (web_query_and @@ 'зачем нужны точные данные о посещаемости магазинов?')::INTEGER AS full_title_entries2, * FROM (SELECT to_tsvector('russian', STRIP(to_tsvector('russian', 'зачем нужны точные данные о посещаемости магазинов?'))::TEXT) AS ts_title, websearch_to_tsquery('russian', REPLACE('зачем нужны точные данные о посещаемости магазинов?', '- ' , ''))AS web_query_and ) AS main -- Best regards, Roman
В списке pgsql-bugs по дате отправления: