From 0010721e892b470e90878f6128b490f52ebac8c4 Mon Sep 17 00:00:00 2001 From: Ilia Peterov Date: Mon, 29 Aug 2022 21:28:00 +0400 Subject: [PATCH] Improved example of index on SearchVector in full text search docs. --- docs/ref/contrib/postgres/search.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ` 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