]> begriffs open source - ai-pg/blob - full-docs/html/sql-createtsdictionary.html
Include latest toc output
[ai-pg] / full-docs / html / sql-createtsdictionary.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>CREATE TEXT SEARCH DICTIONARY</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="sql-createtsconfig.html" title="CREATE TEXT SEARCH CONFIGURATION" /><link rel="next" href="sql-createtsparser.html" title="CREATE TEXT SEARCH PARSER" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">CREATE TEXT SEARCH DICTIONARY</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="sql-createtsconfig.html" title="CREATE TEXT SEARCH CONFIGURATION">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="sql-commands.html" title="SQL Commands">Up</a></td><th width="60%" align="center">SQL Commands</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="sql-createtsparser.html" title="CREATE TEXT SEARCH PARSER">Next</a></td></tr></table><hr /></div><div class="refentry" id="SQL-CREATETSDICTIONARY"><div class="titlepage"></div><a id="id-1.9.3.89.1" class="indexterm"></a><div class="refnamediv"><h2><span class="refentrytitle">CREATE TEXT SEARCH DICTIONARY</span></h2><p>CREATE TEXT SEARCH DICTIONARY — define a new text search dictionary</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
3 CREATE TEXT SEARCH DICTIONARY <em class="replaceable"><code>name</code></em> (
4     TEMPLATE = <em class="replaceable"><code>template</code></em>
5     [, <em class="replaceable"><code>option</code></em> = <em class="replaceable"><code>value</code></em> [, ... ]]
6 )
7 </pre></div><div class="refsect1" id="id-1.9.3.89.5"><h2>Description</h2><p>
8    <code class="command">CREATE TEXT SEARCH DICTIONARY</code> creates a new text search
9    dictionary.  A text search dictionary specifies a way of recognizing
10    interesting or uninteresting words for searching.  A dictionary depends
11    on a text search template, which specifies the functions that actually
12    perform the work.  Typically the dictionary provides some options that
13    control the detailed behavior of the template's functions.
14   </p><p>
15    If a schema name is given then the text search dictionary is created in the
16    specified schema.  Otherwise it is created in the current schema.
17   </p><p>
18    The user who defines a text search dictionary becomes its owner.
19   </p><p>
20    Refer to <a class="xref" href="textsearch.html" title="Chapter 12. Full Text Search">Chapter 12</a> for further information.
21   </p></div><div class="refsect1" id="id-1.9.3.89.6"><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>name</code></em></span></dt><dd><p>
22       The name of the text search dictionary to be created.  The name can be
23       schema-qualified.
24      </p></dd><dt><span class="term"><em class="replaceable"><code>template</code></em></span></dt><dd><p>
25       The name of the text search template that will define the basic
26       behavior of this dictionary.
27      </p></dd><dt><span class="term"><em class="replaceable"><code>option</code></em></span></dt><dd><p>
28       The name of a template-specific option to be set for this dictionary.
29      </p></dd><dt><span class="term"><em class="replaceable"><code>value</code></em></span></dt><dd><p>
30       The value to use for a template-specific option.  If the value
31       is not a simple identifier or number, it must be quoted (but you can
32       always quote it, if you wish).
33      </p></dd></dl></div><p>
34    The options can appear in any order.
35   </p></div><div class="refsect1" id="id-1.9.3.89.7"><h2>Examples</h2><p>
36    The following example command creates a Snowball-based dictionary
37    with a nonstandard list of stop words.
38   </p><pre class="programlisting">
39 CREATE TEXT SEARCH DICTIONARY my_russian (
40     template = snowball,
41     language = russian,
42     stopwords = myrussian
43 );
44 </pre></div><div class="refsect1" id="id-1.9.3.89.8"><h2>Compatibility</h2><p>
45    There is no <code class="command">CREATE TEXT SEARCH DICTIONARY</code> statement in
46    the SQL standard.
47   </p></div><div class="refsect1" id="id-1.9.3.89.9"><h2>See Also</h2><span class="simplelist"><a class="xref" href="sql-altertsdictionary.html" title="ALTER TEXT SEARCH DICTIONARY"><span class="refentrytitle">ALTER TEXT SEARCH DICTIONARY</span></a>, <a class="xref" href="sql-droptsdictionary.html" title="DROP TEXT SEARCH DICTIONARY"><span class="refentrytitle">DROP TEXT SEARCH DICTIONARY</span></a></span></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sql-createtsconfig.html" title="CREATE TEXT SEARCH CONFIGURATION">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sql-commands.html" title="SQL Commands">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sql-createtsparser.html" title="CREATE TEXT SEARCH PARSER">Next</a></td></tr><tr><td width="40%" align="left" valign="top">CREATE TEXT SEARCH CONFIGURATION </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> CREATE TEXT SEARCH PARSER</td></tr></table></div></body></html>