pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedTO_TSVECTOR acts differently with national charcters
2+ messages / 2 participants
[nested] [flat]
* TO_TSVECTOR acts differently with national charcters
@ 2017-08-22 08:53 Mart Palmas <Mart.Palmas@datel.ee>
2017-08-24 19:01 ` Re: TO_TSVECTOR acts differently with national charcters Arthur Zakirov <a.zakirov@postgrespro.ru>
0 siblings, 1 reply; 2+ messages in thread
From: Mart Palmas @ 2017-08-22 08:53 UTC (permalink / raw)
To: pgsql-bugs
Query:
SELECT strip(to_tsvector('simple','toop/6 foo bar')),strip(to_tsvector('simple','tüüp/6 foo bar'));
PosgreSQL 9.3.5, Collation - Estonian
Results are:
'bar' 'foo' 'toop/6'
'/6' 'bar' 'foo' 'tüüp'
The string is converted to vector differently, when the string contains national charcters "äöüõžš".
Mart Palmas
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: TO_TSVECTOR acts differently with national charcters
2017-08-22 08:53 TO_TSVECTOR acts differently with national charcters Mart Palmas <Mart.Palmas@datel.ee>
@ 2017-08-24 19:01 ` Arthur Zakirov <a.zakirov@postgrespro.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zakirov @ 2017-08-24 19:01 UTC (permalink / raw)
To: Mart Palmas <Mart.Palmas@datel.ee>; +Cc: pgsql-bugs
On Tue, Aug 22, 2017 at 08:53:45AM +0000, Mart Palmas wrote:
>
> The string is converted to vector differently, when the string contains national charcters "äöüõžš".
>
I suppose it is true for all non-ascii characters. It could be fixed by
patching the parser of text search. But maybe someone won't be happy
about it, because it can break backward compatibility.
> Results are:
> 'bar' 'foo' 'toop/6'
> '/6' 'bar' 'foo' 'tüüp'
Do you expect first or second option?
Someone may want not devide words by the "/" character, because "toop/6"
can mean a path:
=# select * from ts_debug('simple', 'toop/6');
alias | description | token | dictionaries | dictionary | lexemes
-------+-------------------+--------+--------------+------------+----------
file | File or path name | toop/6 | {simple} | simple | {toop/6}
(1 row)
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-08-24 19:01 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22 08:53 TO_TSVECTOR acts differently with national charcters Mart Palmas <Mart.Palmas@datel.ee>
2017-08-24 19:01 ` Arthur Zakirov <a.zakirov@postgrespro.ru>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox