Skip to content

Commit

Permalink
Fixed #26684 -- Removed incorrect index example in docs/ref/contrib/p…
Browse files Browse the repository at this point in the history
…ostgres/search.txt.
  • Loading branch information
Xof authored and timgraham committed May 30, 2016
1 parent f1e408f commit 9210752
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/ref/contrib/postgres/search.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,9 @@ 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. For example:

.. code-block:: sql

CREATE INDEX body_text_search ON blog_entry (to_tsvector(body_text));

This index will then be used by subsequent queries. In many cases this will be
sufficient.
vector you wish to use. The PostgreSQL documentation has details on
`creating indexes for full text search
<http://www.postgresql.org/docs/current/static/textsearch-tables.html#TEXTSEARCH-TABLES-INDEX>`_.

``SearchVectorField``
---------------------
Expand Down

0 comments on commit 9210752

Please sign in to comment.