Full text search bug ('russian' regconfig) - Mailing list pgsql-bugs

From egocenter
Subject Full text search bug ('russian' regconfig)
Date
Msg-id 1453547361.20200219113508@yandex.ru
Whole thread Raw
Responses Re: Full text search bug ('russian' regconfig)
List 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 by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16266: Server crash on SELECT event_trigger-returning function
Next
From: Heikki Linnakangas
Date:
Subject: Re: [Bug Report] Week Day