</optional> OUT <replaceable class="PARAMETER">word</replaceable> <type>text</>, OUT <replaceable class="PARAMETER">ndoc</replaceable> <type>integer</>,
OUT <replaceable class="PARAMETER">word</replaceable> <type>text</>, OUT <replaceable class="PARAMETER">ndoc</replaceable> <type>integer</>,
OUT <replaceable class="PARAMETER">nentry</replaceable> <type>integer</>) returns <type>setof record</>
OUT <replaceable class="PARAMETER">nentry</replaceable> <type>integer</>) returns <type>setof record</>
</synopsis>
</synopsis>
...
@@ -2087,7 +2088,7 @@ SELECT alias, description, token FROM ts_debug('http://example.com/stuff/index.h
...
@@ -2087,7 +2088,7 @@ SELECT alias, description, token FROM ts_debug('http://example.com/stuff/index.h
by the parser, each dictionary in the list is consulted in turn,
by the parser, each dictionary in the list is consulted in turn,
until some dictionary recognizes it as a known word. If it is identified
until some dictionary recognizes it as a known word. If it is identified
as a stop word, or if no dictionary recognizes the token, it will be
as a stop word, or if no dictionary recognizes the token, it will be
discarded and not indexed or searched.
discarded and not indexed or searched for.
The general rule for configuring a list of dictionaries
The general rule for configuring a list of dictionaries
is to place first the most narrow, most specific dictionary, then the more
is to place first the most narrow, most specific dictionary, then the more
general dictionaries, finishing with a very general dictionary, like
general dictionaries, finishing with a very general dictionary, like
...
@@ -2679,9 +2680,9 @@ CREATE TEXT SEARCH DICTIONARY english_stem (
...
@@ -2679,9 +2680,9 @@ CREATE TEXT SEARCH DICTIONARY english_stem (
</para>
</para>
<para>
<para>
As an example, we will create a configuration
As an example we will create a configuration
<literal>pg</literal> by duplicating the built-in
<literal>pg</literal>, starting by duplicating the built-in
<literal>english</> configuration.
<literal>english</> configuration:
<programlisting>
<programlisting>
CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );
CREATE TEXT SEARCH CONFIGURATION public.pg ( COPY = pg_catalog.english );