pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: postgres admin <pgsql-admin@postgresql.org>
Subject: not able to setup tsearch2 synonym dictionary
Date: Thu, 9 Aug 2007 15:16:35 +0530
Message-ID: <a97c77030708090246n7e8ec44bo1d3184eba8db742a@mail.gmail.com> (raw)

Hi ,

I am trying to setup a synonym dictionary setup using instructions in

http://people.planetpostgresql.org/mha/index.php?/archives/118-Custom-synonym-dictionaries-in-tsearc...

after following  all the steps lexize is not doing the expected eg

tradein_clients=# SELECT * from  public.pg_ts_dict where dict_name='pg_dict';
-[ RECORD 1 ]---+-------------------------------------------
dict_name       | pg_dict
dict_initoption | /opt/usr/local/pgsql/share/contrib/pg_dict
dict_comment    | pg-specific dictionary
dict_init       | syn_init(internal)
dict_lexize     | syn_lexize(internal,internal,integer)

tradein_clients=# \!cat /opt/usr/local/pgsql/share/contrib/pg_dict
postgresql postgres
pgsql postgres
postgre postgres
tradein_clients=# \pset null NULL
Null display is "NULL".
tradein_clients=# select
lexize('pg_dict','postgresql'),lexize('pg_dict','pgsql');
-[ RECORD 1 ]
lexize | NULL
lexize | NULL


The expected result is

lexize| {postgres}
lexize| {postgres}

can any one pls tell where things might have gone wrong?

regds
mallah



Message-ID: <a97c77030708090246n7e8ec44bo1d3184eba8db742a@mail.gmail.com>
Permalink:  ../a97c77030708090246n7e8ec44bo1d3184eba8db742a@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030708090246n7e8ec44bo1d3184eba8db742a@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mallah.rajesh@gmail.com
  Subject: Re: not able to setup tsearch2 synonym dictionary
  In-Reply-To: <a97c77030708090246n7e8ec44bo1d3184eba8db742a@mail.gmail.com>

* 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