Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W137W-0005aa-N3 for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Jan 2014 00:05:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W137W-0006JM-5S for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Jan 2014 00:05:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0z29-0008C6-GT for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 19:43:21 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0z26-00006I-QI for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 19:43:20 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0z25-0004rj-RM for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 19:43:18 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1W0z20-0007Gz-9W for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 19:43:12 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8750: 'simple' parser in to_tsvector() splits words on underscores To: pgsql-bugs@postgresql.org From: drx@a-blast.org Message-Id: Date: Wed, 08 Jan 2014 19:43:12 +0000 X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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