pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Mart Palmas <Mart.Palmas@datel.ee>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: TO_TSVECTOR acts differently with national charcters
Date: Thu, 24 Aug 2017 22:01:34 +0300
Message-ID: <20170824190134.GA1699@arthur.localdomain> (raw)
In-Reply-To: <2E9A0BD1BE1DDD498AD83A732B3EF884AD38A7AC@mail2.datel.ee>
References: <2E9A0BD1BE1DDD498AD83A732B3EF884AD38A7AC@mail2.datel.ee>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (2+ messages)

Message-ID: <20170824190134.GA1699@arthur.localdomain>
Permalink:  ../20170824190134.GA1699@arthur.localdomain/
Also on:    postgresql.org/message-id/20170824190134.GA1699@arthur.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: a.zakirov@postgrespro.ru, Mart.Palmas@datel.ee
  Subject: Re: TO_TSVECTOR acts differently with national charcters
  In-Reply-To: <20170824190134.GA1699@arthur.localdomain>
  References: <2E9A0BD1BE1DDD498AD83A732B3EF884AD38A7AC@mail2.datel.ee> <20170824190134.GA1699@arthur.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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