summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Willison <simonw@eventbrite.com>2017-10-06 12:44:44 -0700
committerTim Graham <timograham@gmail.com>2017-10-17 09:29:47 -0400
commit346eb328617ada9c65f5c9ded2e2914f3dcc04c9 (patch)
treee1b2cd557afecfc0bfda895216e103773f18b05d /docs
parentf771b24f00c982f169821191bc0843d3f3ee1d5c (diff)
Made SearchQuery examples less sterotyped.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/search.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt
index e3f4f7296d..317a553163 100644
--- a/docs/ref/contrib/postgres/search.txt
+++ b/docs/ref/contrib/postgres/search.txt
@@ -80,9 +80,9 @@ looks for matches for all of the resulting terms.
``SearchQuery`` terms can be combined logically to provide more flexibility::
>>> from django.contrib.postgres.search import SearchQuery
- >>> SearchQuery('potato') & SearchQuery('ireland') # potato AND ireland
- >>> SearchQuery('potato') | SearchQuery('penguin') # potato OR penguin
- >>> ~SearchQuery('sausage') # NOT sausage
+ >>> SearchQuery('meat') & SearchQuery('cheese') # AND
+ >>> SearchQuery('meat') | SearchQuery('cheese') # OR
+ >>> ~SearchQuery('meat') # NOT
See :ref:`postgresql-fts-search-configuration` for an explanation of the
``config`` parameter.