From: ruxandra.durus@vauban.ro
To: pgsql-bugs@postgresql.org
Subject: BUG #13964: unexpected result from to_tsvector
Date: Wed, 17 Feb 2016 08:00:48 +0000
Message-ID: <20160217080048.26357.49416@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13964
Logged by: Ruxandra
Email address: ruxandra.durus@vauban.ro
PostgreSQL version: 9.5.1
Operating system: Cent OS 6.7
Description:
Hello,
My version of PostgreSQL is:
"PostgreSQL 9.5beta1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7
20120313 (Red Hat 4.4.7-16), 64-bit"
More details about the operating system:
Linux javatesting 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC
2015 x86_64 x86_64 x86_64 GNU/Linux
I am using pgAdmin version 1.20.0 to query the database.
I am using your full text search (which works great), but i have a small
problem:
SELECT to_tsvector('simple', 'test@vauban-reg.ro');
returns "'test@vauban-reg.ro':1"
which is exactly what I need.
But when I run :
SELECT to_tsvector('simple', 'test@123-reg.ro');
I get:
"'123':2 'reg.ro':3 'test':1"
instead of "'test@123-reg.ro':1"
From the documentation here
http://www.postgresql.org/docs/current/static/pgtrgm.html , point F.30.4. I
understood that with "simple" option only space is a separator for the
stems. Is it a bug or am I doing something wrong?
Thank you for your time,
Ruxandra Durus
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: ruxandra.durus@vauban.ro
Subject: Re: BUG #13964: unexpected result from to_tsvector
In-Reply-To: <20160217080048.26357.49416@wrigleys.postgresql.org>
References: <20160217080048.26357.49416@wrigleys.postgresql.org>
* 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