Full text search bug ('russian' regconfig)

From: egocenter <egocenter(at)yandex(dot)ru>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Full text search bug ('russian' regconfig)
Date: 2020-02-19 08:35:08
Message-ID: 1453547361.20200219113508@yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2020-02-19 09:07:04 Re: [Bug Report] Week Day
Previous Message PG Bug reporting form 2020-02-19 08:00:01 BUG #16266: Server crash on SELECT event_trigger-returning function