Doc: tweak textsearch.sgml for SEO purposes.
authorTom Lane
Tue, 12 Apr 2022 22:21:04 +0000 (18:21 -0400)
committerTom Lane
Tue, 12 Apr 2022 22:21:22 +0000 (18:21 -0400)
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

doc/src/sgml/textsearch.sgml

index fda030a1c8347b11f48aca5e2d3a37e58cdd3de7..a8531442d8ec62a5a57e68a2a8edae5cc774edbf 100644 (file)
@@ -3618,7 +3618,7 @@ SELECT plainto_tsquery('supernovae stars');
  
 
  
-  <span class="marked">GIN and GiST Index Types</span>
+  <span class="marked">Preferred Index Types for Text Search</span>
 
   
    text search
@@ -3627,10 +3627,16 @@ SELECT plainto_tsquery('supernovae stars');
 
   
    There are two kinds of indexes that can be used to speed up full text
-   searches.
+   searches:
+   GIN and
+   GiST.
    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.
+  
+
+  
+   To create such an index, do one of: