From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: nikolajs.arhipovs@gmail.com
Subject: BUG #15488: Unexpected behaviour of to_tsverctor and ts_query
Date: Tue, 06 Nov 2018 12:51:58 +0000
Message-ID: <15488-a738bcc48f1af087@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15488
Logged by: Nikolajs Arhipovs
Email address: nikolajs.arhipovs@gmail.com
PostgreSQL version: 9.6.8
Operating system: Linux, kernel 4.18.16-arch1-1-ARCH
Description:
I am trying to do prefix search of emails using full text search. Emails
sometimes contain dot symbols.
Now, select to_tsquery('simple', 'thing.a:*'); returns a single term as
expected but
select to_tsquery('simple', 'the.thing.a:*') suddenly tokenizes my search
expression into 'the.thing':* & 'a':*. At the same time select
to_tsquery('simple', 'the.thing.aa:*'); tokenizes as expected into a single
term.
Also select to_tsquery('simple', 'the.thing@gmail.com'); returns a single
term as expected, but select to_tsquery('simple', 'the.thing@gma:*'); splits
on @ char and returns two tokens.
This behavior is not covered in the official documentation.
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: noreply@postgresql.org, nikolajs.arhipovs@gmail.com
Subject: Re: BUG #15488: Unexpected behaviour of to_tsverctor and ts_query
In-Reply-To: <15488-a738bcc48f1af087@postgresql.org>
References: <15488-a738bcc48f1af087@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