HAREDIR/tsearch_data/synonym_sample.syn</TT
>:
</P><PRE
CLASS="PROGRAMLISTING"
>postgres        pgsql
postgresql      pgsql
postgre pgsql
gogle   googl
indices index*</PRE
><P>
    Then we will get these results:
</P><PRE
CLASS="SCREEN"
>mydb=# CREATE TEXT SEARCH DICTIONARY syn (template=synonym, synonyms='synonym_sample');
mydb=# SELECT ts_lexize('syn','indices');
 ts_lexize
-----------
 {index}
(1 row)

mydb=# CREATE TEXT SEARCH CONFIGURATION tst (copy=simple);
mydb=# ALTER TEXT SEARCH CONFIGURATION tst A