Unix Technical Forum

not able to setup tsearch2 synonym dictionary

This is a discussion on not able to setup tsearch2 synonym dictionary within the pgsql Admins forums, part of the PostgreSQL category; --> Hi , I am trying to setup a synonym dictionary setup using instructions in http://people.planetpostgresql.org/m...-tsearch2.html after following all the ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:04 AM
Rajesh Kumar Mallah
 
Posts: n/a
Default not able to setup tsearch2 synonym dictionary

Hi ,

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

http://people.planetpostgresql.org/m...-tsearch2.html

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','p gsql');
-[ 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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com