From e992703e07940458443897ae8c4b06bb1b8f5049 Mon Sep 17 00:00:00 2001 From: Ilia Peterov Date: Mon, 29 Aug 2022 21:28:00 +0400 Subject: [PATCH] [4.1.x] Improved example of index on SearchVector in full text search docs. Backport of 0010721e892b470e90878f6128b490f52ebac8c4 from main --- 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 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 ` 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