mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Improved example of index on SearchVector in full text search docs.
This commit is contained in:
parent
a9e7beb959
commit
0010721e89
@ -260,7 +260,10 @@ particular model, you can create a functional
|
|||||||
:class:`GiST <django.contrib.postgres.indexes.GistIndex>` index which matches
|
:class:`GiST <django.contrib.postgres.indexes.GistIndex>` index which matches
|
||||||
the search vector you wish to use. For example::
|
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
|
The PostgreSQL documentation has details on
|
||||||
`creating indexes for full text search
|
`creating indexes for full text search
|
||||||
|
Loading…
Reference in New Issue
Block a user