Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqE5r-0004r0-ON for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jan 2013 02:30:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TqE5q-000520-G5 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jan 2013 02:30:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqA1I-0000pB-5d for pgsql-bugs@postgresql.org; Tue, 01 Jan 2013 22:09:12 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqA1E-0001wo-W6 for pgsql-bugs@postgresql.org; Tue, 01 Jan 2013 22:09:11 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TqA1D-0005Bt-22 for pgsql-bugs@postgresql.org; Tue, 01 Jan 2013 22:09:07 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TqA1B-0000s1-Uc for pgsql-bugs@postgresql.org; Tue, 01 Jan 2013 22:09:05 +0000 Date: Tue, 01 Jan 2013 22:09:05 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7780: unaccent extension - dictionary not filtering? To: pgsql-bugs@postgresql.org From: giorgio.gallo@bitnic.it X-Pg-Spam-Score: -1.9 (-) 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: 7780 Logged by: Giorgio Gallo Email address: giorgio.gallo@bitnic.it PostgreSQL version: 9.1.7 Operating system: OSX Description:=20=20=20=20=20=20=20=20 Ciao I'm working to set up full-text search and I enabled the "unaccent" extension. The "unaccent" dictionary however does not seem to behave as a filtering dict, but rather as a "normal" one... Am I doing anything wrong or is this in fact a postgres issue? Version: PostgreSQL 9.1.7 on x86_64-apple-darwin, compiled by i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3), 64-bit Test script: create extension if not exists "unaccent"; create text search configuration TEST_TSCFG (parser =3D DEFAULT); alter text search configuration TEST_TSCFG alter mapping for asciiword, word with UNACCENT, ITALIAN_STEM; select * from ts_debug('TEST_TSCFG','H=C3=B4TeL HoTeL'); drop text search configuration if exists TEST_TSCFG; drop extension if exists "unaccent" restrict; Output: alias | description | token | dictionaries |=20 dictionary | lexemes=20 -----------+-------------------+-------+-------------------------+---------= -----+--------- word | Word, all letters | H=C3=B4TeL | {unaccent,italian_stem} | una= ccent=20 | {HoTeL} blank | Space symbols | | {} |=20=20=20= =20=20=20=20=20=20=20 |=20 asciiword | Word, all ASCII | HoTeL | {unaccent,italian_stem} | italian_stem | {hotel} --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs