pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: drx@a-blast.org
To: pgsql-bugs@postgresql.org
Subject: BUG #8750: 'simple' parser in to_tsvector() splits words on underscores
Date: Wed, 08 Jan 2014 19:43:12 +0000
Message-ID: <E1W0z20-0007Gz-9W@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:      8750
Logged by:          Dragan Espenschied
Email address:      drx@a-blast.org
PostgreSQL version: 9.3.2
Operating system:   Ubuntu 12.04 x64_64
Description:        

If to convert a text to a tsvector with the 'simple' parser, words are split
on underscores. For example:


select to_tsvector('simple', 'light_bulb');
    to_tsvector     
--------------------
 'bulb':2 'light':1


The underscore is typically used if a term that should be kept together
contains a space, so it is an explicit note that a term should not be
split.


At least, this is how I understand it.


I suggest that words are not split on underscores by default. It would make
for example typical tasks of tagging very comfortable to implement, without
much need to modify the parser.


Thanks for considering my suggestion!
Dragan



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <E1W0z20-0007Gz-9W@wrigleys.postgresql.org>
Permalink:  ../E1W0z20-0007Gz-9W@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1W0z20-0007Gz-9W@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: drx@a-blast.org
  Subject: Re: BUG #8750: 'simple' parser in to_tsvector() splits words on underscores
  In-Reply-To: <E1W0z20-0007Gz-9W@wrigleys.postgresql.org>
  References: <E1W0z20-0007Gz-9W@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