summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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