summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorIlia Peterov <ipeterov1@gmail.com>2022-08-29 21:28:00 +0400
committerGitHub <noreply@github.com>2022-08-29 19:28:00 +0200
commit0010721e892b470e90878f6128b490f52ebac8c4 (patch)
tree733ef90080f96d8a927d791cc83bb2a83f54f2f0 /docs/ref
parenta9e7beb959bc726eab1c192d2625d6ff6cfa70f4 (diff)
Improved example of index on SearchVector in full text search docs.
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 2e2877a750..dd78154b1e 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