Kaydet (Commit) 346eb328 authored tarafından Simon Willison's avatar Simon Willison Kaydeden (comit) Tim Graham

Made SearchQuery examples less sterotyped.

üst f771b24f
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment