mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
23 lines
463 B
Plaintext
23 lines
463 B
Plaintext
|
--
|
||
|
-- first, define the datatype. Turn off echoing so that expected file
|
||
|
-- does not depend on contents of this file.
|
||
|
--
|
||
|
SET client_min_messages = warning;
|
||
|
\set ECHO none
|
||
|
RESET client_min_messages;
|
||
|
--configuration
|
||
|
ALTER TEXT SEARCH DICTIONARY xsyn (RULES='xsyn_sample', KEEPORIG=false);
|
||
|
--lexize
|
||
|
SELECT ts_lexize('xsyn', 'supernova');
|
||
|
ts_lexize
|
||
|
----------------
|
||
|
{sn,sne,1987a}
|
||
|
(1 row)
|
||
|
|
||
|
SELECT ts_lexize('xsyn', 'grb');
|
||
|
ts_lexize
|
||
|
-----------
|
||
|
|
||
|
(1 row)
|
||
|
|