Previous   Next 

Function lexize

Processes a token using a dictionary.

lexize([dictionary OID | TEXT, ] txt TEXT) RETURNS _TEXT

  • If specified, 'dictionary' is the oid or text name of a dictionary listed in table pg_ts_dict.
  • 'dictionary' is optional if it's already set using the function set_curdict.
SELECT * FROM lexize('simple', 'educated');

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

SELECT * FROM lexize('en_stem', 'educated');

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

SELECT * FROM lexize('en_ispell', 'educated');

       lexize
--------------------
 {educated,educate}
(1 row)