mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Add sample text search dictionary templates and parsers, to replace the
hard-to-maintain textual examples currently in the SGML docs. From Sergey Karpov.
This commit is contained in:
22
contrib/dict_xsyn/expected/dict_xsyn.out
Normal file
22
contrib/dict_xsyn/expected/dict_xsyn.out
Normal file
@ -0,0 +1,22 @@
|
||||
--
|
||||
-- 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)
|
||||
|
Reference in New Issue
Block a user