pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin.Kasperski@mekk.waw.pl
To: pgsql-bugs@postgresql.org
Subject: BUG #6327: Prefix full-text-search fails for hosts with complicated names
Date: Mon, 05 Dec 2011 12:40:10 +0000
Message-ID: <E1RXXq6-0000vH-BA@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6327
Logged by:          Marcin Kasperski
Email address:      Marcin.Kasperski@mekk.waw.pl
PostgreSQL version: 9.1.1
Operating system:   Linux
Description:        

Synopsis
=========

'goog:*'  matches  google.com
but
'e-goog:*' does not match e-google.com

Example SQL
=============

Try the queries below. Note ismatch column, which is t in the former, and f
in the latter case (IMHO should be t in both).

SELECT a query, b message, a@@b ismatch FROM (
   SELECT TO_TSQUERY('english', 'goog:*') a,
          TO_TSVECTOR('english', 'See google.com') b) as foo;

SELECT a query, b message, a@@b ismatch FROM (
   SELECT TO_TSQUERY('english', 'e-goog:*') a, 
          TO_TSVECTOR('english', 'See e-google.com') b) as foo;






view thread (5+ messages)  latest in thread

Message-ID: <E1RXXq6-0000vH-BA@wrigleys.postgresql.org>
Permalink:  ../E1RXXq6-0000vH-BA@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1RXXq6-0000vH-BA@wrigleys.postgresql.org

 · 

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: Marcin.Kasperski@mekk.waw.pl
  Subject: Re: BUG #6327: Prefix full-text-search fails for hosts with complicated names
  In-Reply-To: <E1RXXq6-0000vH-BA@wrigleys.postgresql.org>
  References: <E1RXXq6-0000vH-BA@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