summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2022-04-12 22:21:04 +0000
committerTom Lane2022-04-12 22:21:30 +0000
commitd53f689f8f750a3dd8e85bb26ee881892e3e2921 (patch)
tree6f3c9d6f743252ae11a97f0ea0394a88d05c9640 /doc/src
parentb9eb0412ffb839e70e81820b6405db71d3f1966f (diff)
Doc: tweak textsearch.sgml for SEO purposes.
Google seems to like to return textsearch.html for queries about GIN and GiST indexes, even though it's not a primary reference for either. It seems likely that that's because those keywords appear in the page title. Since "GIN and GiST Index Types" is not a very apposite title for this material anyway, rename the section in hopes of stopping that. Also provide explicit links to the GIN and GiST chapters, to help anyone who finds their way to this page regardless. Per gripe from Jan Piotrowski. Back-patch to supported branches. (Unfortunately Google is likely to continue returning the 9.1 version of this page, but improving that situation is a matter for the www team.) Discussion: https://postgr.es/m/164978902252.1276550.9330175733459697101@wrigleys.postgresql.org
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/textsearch.sgml10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/src/sgml/textsearch.sgml b/doc/src/sgml/textsearch.sgml
index 48d6d76385d..7007031c71e 100644
--- a/doc/src/sgml/textsearch.sgml
+++ b/doc/src/sgml/textsearch.sgml
@@ -3600,7 +3600,7 @@ SELECT plainto_tsquery('supernovae stars');
</sect1>
<sect1 id="textsearch-indexes">
- <title>GIN and GiST Index Types</title>
+ <title>Preferred Index Types for Text Search</title>
<indexterm zone="textsearch-indexes">
<primary>text search</primary>
@@ -3609,10 +3609,16 @@ SELECT plainto_tsquery('supernovae stars');
<para>
There are two kinds of indexes that can be used to speed up full text
- searches.
+ searches:
+ <link linkend="gin"><acronym>GIN</acronym></link> and
+ <link linkend="gist"><acronym>GiST</acronym></link>.
Note that indexes are not mandatory for full text searching, but in
cases where a column is searched on a regular basis, an index is
usually desirable.
+ </para>
+
+ <para>
+ To create such an index, do one of:
<variablelist>