Previous   Next 

Function set_curdict

Sets the current dictionary.

set_curdict(dictionary INT | TEXT) RETURNS VOID

  • 'dictionary' is the int oid or text name of a dictionary listed in table pg_ts_dict.
SELECT oid, dict_name FROM pg_ts_dict;
  
  oid  |    dict_name
-------+-----------------
 17157 | simple
 17160 | en_stem
 17162 | ru_stem
 17165 | ispell_template
 17168 | synonym
 17549 | en_ispell
(6 rows)


SELECT set_curdict('en_stem');

 set_curdict
-------------

(1 row)

SELECT * FROM lexize('educated');

 lexize
--------
 {educ}
(1 row)