summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorIlia Peterov <ipeterov1@gmail.com>2022-08-29 21:28:00 +0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-08-29 19:28:57 +0200
commite992703e07940458443897ae8c4b06bb1b8f5049 (patch)
treeedb1b5509853eddf17336fa8ae18e90dc3b78b6b /docs/ref
parent524ea6b77b9bcc8cb24fd0b55e5cb8ca4186ee4f (diff)
[4.1.x] Improved example of index on SearchVector in full text search docs.
Backport of 0010721e892b470e90878f6128b490f52ebac8c4 from main
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/postgres/search.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt
index fa369670bb..73bcd9810d 100644
--- a/docs/ref/contrib/postgres/search.txt
+++ b/docs/ref/contrib/postgres/search.txt
@@ -260,7 +260,10 @@ particular model, you can create a functional
:class:`GiST <django.contrib.postgres.indexes.GistIndex>` index which matches
the search vector you wish to use. For example::
- GinIndex(SearchVector('body_text'), name='body_search_vector_idx')
+ GinIndex(
+ SearchVector('body_text', 'headline', config='english'),
+ name='search_vector_idx',
+ )
The PostgreSQL documentation has details on
`creating indexes for full text search