@@ -328,7 +328,7 @@ ORDER BY dlm DESC LIMIT 10;
328328<programlisting>
329329CREATE INDEX pgweb_idx ON pgweb USING gin(to_tsvector('english', body));
330330</programlisting>
331-
331+
332332 Notice that the 2-argument version of <function>to_tsvector</function> is
333333 used. Only text search functions which specify a configuration name can
334334 be used in expression indexes (<xref linkend="indexes-expressional">).
@@ -405,7 +405,7 @@ ORDER BY rank DESC LIMIT 10;
405405 column current anytime <literal>title</> or <literal>body</> changes.
406406 Keep in mind that, just like with expression indexes, it is important to
407407 specify the configuration name when creating text search data types
408- inside triggers so the column's contents are not affected by changes to
408+ inside triggers so the column's contents are not affected by changes to
409409 <varname>default_text_search_config</>.
410410 </para>
411411
@@ -448,13 +448,13 @@ SELECT to_tsvector('english', 'a fat cat sat on a mat - it ate a fat rats');
448448</programlisting>
449449 </para>
450450
451- <para>
451+ <para>
452452 In the example above we see that the resulting <type>tsvector</type> does not
453453 contain the words <literal>a</literal>, <literal>on</literal>, or
454454 <literal>it</literal>, the word <literal>rats</literal> became
455455 <literal>rat</literal>, and the punctuation sign <literal>-</literal> was
456- ignored.
457- </para>
456+ ignored.
457+ </para>
458458
459459 <para>
460460 The <function>to_tsvector</function> function internally calls a parser
@@ -487,31 +487,31 @@ SELECT to_tsvector('english', 'a fat cat sat on a mat - it ate a fat rats');
487487
488488<programlisting>
489489SELECT * FROM ts_debug('english','a fat cat sat on a mat - it ate a fat rats');
490- Alias | Description | Token | Dictionaries | Lexized token
490+ Alias | Description | Token | Dictionaries | Lexized token
491491-------+---------------+-------+--------------+----------------
492492 lword | Latin word | a | {english} | english: {}
493- blank | Space symbols | | |
493+ blank | Space symbols | | |
494494 lword | Latin word | fat | {english} | english: {fat}
495- blank | Space symbols | | |
495+ blank | Space symbols | | |
496496 lword | Latin word | cat | {english} | english: {cat}
497- blank | Space symbols | | |
497+ blank | Space symbols | | |
498498 lword | Latin word | sat | {english} | english: {sat}
499- blank | Space symbols | | |
499+ blank | Space symbols | | |
500500 lword | Latin word | on | {english} | english: {}
501- blank | Space symbols | | |
501+ blank | Space symbols | | |
502502 lword | Latin word | a | {english} | english: {}
503- blank | Space symbols | | |
503+ blank | Space symbols | | |
504504 lword | Latin word | mat | {english} | english: {mat}
505- blank | Space symbols | | |
506- blank | Space symbols | - | |
505+ blank | Space symbols | | |
506+ blank | Space symbols | - | |
507507 lword | Latin word | it | {english} | english: {}
508- blank | Space symbols | | |
508+ blank | Space symbols | | |
509509 lword | Latin word | ate | {english} | english: {ate}
510- blank | Space symbols | | |
510+ blank | Space symbols | | |
511511 lword | Latin word | a | {english} | english: {}
512- blank | Space symbols | | |
512+ blank | Space symbols | | |
513513 lword | Latin word | fat | {english} | english: {fat}
514- blank | Space symbols | | |
514+ blank | Space symbols | | |
515515 lword | Latin word | rats | {english} | english: {rat}
516516 (24 rows)
517517</programlisting>
@@ -688,7 +688,7 @@ SELECT * FROM ts_token_type('default');
688688<programlisting>
689689{D-weight, C-weight, B-weight, A-weight}
690690</programlisting>
691-
691+
692692 If no weights are provided,
693693 then these defaults are used:
694694
@@ -943,7 +943,7 @@ SELECT ts_headline('a b c', 'c'::tsquery);
943943 a b <b>c</b>
944944
945945SELECT ts_headline('a b c', 'c'::tsquery, 'StartSel=<,StopSel=>');
946- ts_headline
946+ ts_headline
947947-------------
948948 a b <c>
949949</programlisting>
@@ -989,7 +989,7 @@ ORDER BY rank DESC LIMIT 10) AS foo;
989989 </para>
990990
991991 <para>
992- Some examples of normalization:
992+ Some examples of normalization:
993993
994994 <itemizedlist spacing="compact" mark="bullet">
995995
@@ -998,7 +998,7 @@ ORDER BY rank DESC LIMIT 10) AS foo;
998998 Linguistic - ispell dictionaries try to reduce input words to a
999999 normalized form; stemmer dictionaries remove word endings
10001000 </para>
1001- </listitem>
1001+ </listitem>
10021002 <listitem>
10031003 <para>
10041004 Identical <acronym>URL</acronym> locations are identified and canonicalized:
@@ -1113,7 +1113,7 @@ SELECT ts_lexize('english_stem', 'stars');
11131113
11141114 <sect2 id="textsearch-stopwords">
11151115 <title>Stop Words</title>
1116-
1116+
11171117 <para>
11181118 Stop words are words which are very common, appear in almost
11191119 every document, and have no discrimination value. Therefore, they can be ignored
@@ -1207,7 +1207,7 @@ SELECT ts_lexize('public.simple_dict','The');
12071207
12081208<programlisting>
12091209SELECT * FROM ts_debug('english','Paris');
1210- Alias | Description | Token | Dictionaries | Lexized token
1210+ Alias | Description | Token | Dictionaries | Lexized token
12111211-------+-------------+-------+----------------+----------------------
12121212 lword | Latin word | Paris | {english_stem} | english_stem: {pari}
12131213(1 row)
@@ -1219,7 +1219,7 @@ ALTER TEXT SEARCH CONFIGURATION english
12191219 ALTER MAPPING FOR lword WITH synonym, english_stem;
12201220
12211221SELECT * FROM ts_debug('english','Paris');
1222- Alias | Description | Token | Dictionaries | Lexized token
1222+ Alias | Description | Token | Dictionaries | Lexized token
12231223-------+-------------+-------+------------------------+------------------
12241224 lword | Latin word | Paris | {synonym,english_stem} | synonym: {paris}
12251225(1 row)
@@ -1824,11 +1824,10 @@ SHOW default_text_search_config;
18241824 <secondary>GiST</secondary>
18251825 </indexterm>
18261826
1827- <!--
18281827 <indexterm zone="textsearch-indexes">
18291828 <primary>GiST</primary>
1829+ <secondary>text search</secondary>
18301830 </indexterm>
1831- -->
18321831 <term>
18331832 <synopsis>
18341833 CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable> USING gist(<replaceable>column</replaceable>);
@@ -1851,11 +1850,11 @@ SHOW default_text_search_config;
18511850 <secondary>GIN</secondary>
18521851 </indexterm>
18531852
1854- <!--
18551853 <indexterm zone="textsearch-indexes">
18561854 <primary>GIN</primary>
1855+ <secondary>text search</secondary>
18571856 </indexterm>
1858- -->
1857+
18591858 <term>
18601859 <synopsis>
18611860 CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable> USING gin(<replaceable>column</replaceable>);
@@ -2079,7 +2078,7 @@ EXPLAIN SELECT * FROM apod WHERE textsearch @@@ to_tsquery('supernovae:a');
20792078 List of fulltext configurations
20802079 Schema | Name | Description
20812080----------+----------------------------
2082- fulltext | fulltext_cfg |
2081+ fulltext | fulltext_cfg |
20832082 public | fulltext_cfg |
20842083</programlisting>
20852084 </para>
@@ -2482,11 +2481,11 @@ dinit_intdict(PG_FUNCTION_ARGS) {
24822481 PG_FREE_IF_COPY(in, 0);
24832482 pcfg=cfg;
24842483
2485- while (pcfg->key)
2484+ while (pcfg->key)
24862485 {
24872486 if (strcasecmp("MAXLEN", pcfg->key) == 0)
24882487 d->maxlen=atoi(pcfg->value);
2489- else if ( strcasecmp("REJECTLONG", pcfg->key) == 0)
2488+ else if ( strcasecmp("REJECTLONG", pcfg->key) == 0)
24902489 {
24912490 if ( strcasecmp("true", pcfg->value) == 0 )
24922491 d->rejectlong=true;
@@ -2522,7 +2521,7 @@ dlexize_intdict(PG_FUNCTION_ARGS)
25222521
25232522 if (PG_GETARG_INT32(2) > d->maxlen)
25242523 {
2525- if (d->rejectlong)
2524+ if (d->rejectlong)
25262525 { /* stop, return void array */
25272526 pfree(txt);
25282527 res[0].lexeme = NULL;
@@ -2798,14 +2797,14 @@ Datum testprs_getlexeme(PG_FUNCTION_ARGS)
27982797 /* blank type */
27992798 type = 12;
28002799 /* go to the next non-white-space character */
2801- while ((pst->buffer)[pst->pos] == ' ' &&
2800+ while ((pst->buffer)[pst->pos] == ' ' &&
28022801 pst->pos < pst->len)
28032802 (pst->pos)++;
28042803 } else {
28052804 /* word type */
28062805 type = 3;
28072806 /* go to the next white-space character */
2808- while ((pst->buffer)[pst->pos] != ' ' &&
2807+ while ((pst->buffer)[pst->pos] != ' ' &&
28092808 pst->pos < pst->len)
28102809 (pst->pos)++;
28112810 }