diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt index cfed877d9c..fa369670bb 100644 --- a/docs/ref/contrib/postgres/search.txt +++ b/docs/ref/contrib/postgres/search.txt @@ -255,8 +255,14 @@ run into performance problems. Full text search is a more intensive process than comparing the size of an integer, for example. In the event that all the fields you're querying on are contained within one -particular model, you can create a functional index which matches the search -vector you wish to use. The PostgreSQL documentation has details on +particular model, you can create a functional +:class:`GIN ` or +:class:`GiST ` index which matches +the search vector you wish to use. For example:: + + GinIndex(SearchVector('body_text'), name='body_search_vector_idx') + +The PostgreSQL documentation has details on `creating indexes for full text search `_.