diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2016-04-22 16:20:47 +0100 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2016-04-22 16:20:47 +0100 |
| commit | 9e4e20a71c9648f8a1c6397ada40739d4aaa3ec6 (patch) | |
| tree | d6a8b28f8b153c59226cc897540f83a8b91aae34 | |
| parent | 6b0a25d9e29f116292cea5064a45c4e518ac8542 (diff) | |
Fix typos in PGFTS docs.
Thanks for Simon Willison for the spot.
| -rw-r--r-- | docs/ref/contrib/postgres/search.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt index 21f41ff534..592e730e8e 100644 --- a/docs/ref/contrib/postgres/search.txt +++ b/docs/ref/contrib/postgres/search.txt @@ -30,7 +30,7 @@ single column in the database. For example:: [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>] This creates a ``to_tsvector`` in the database from the ``body_text`` field -and a ``plainto_tsquery`` from the search term ``'Potato'``, both using the +and a ``plainto_tsquery`` from the search term ``'Cheese'``, both using the default database search configuration. The results are obtained by matching the query and the vector. @@ -185,7 +185,7 @@ described in the `PostgreSQL documentation`_. You can then query the field as if it were an annotated ``SearchVector``:: >>> Entry.objects.update(search_vector=SearchVector('body_text')) - >>> Entry.objects.filter(search_vector='potato') + >>> Entry.objects.filter(search_vector='cheese') [<Entry: Cheese on Toast recipes>, <Entry: Pizza recipes>] .. _PostgreSQL documentation: http://www.postgresql.org/docs/current/static/textsearch-features.html#TEXTSEARCH-UPDATE-TRIGGERS |
