summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2020-03-04 13:33:12 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-16 10:27:23 +0100
commit3baf92cf8230ad3a932986170fd07c8feae7ff2f (patch)
treed40a4ccf7e8d693615e908fb40f0612e1495635a /docs
parent924c01ba095f7df9529a65c176a892a5c1624ec5 (diff)
Fixed #31340 -- Allowed query expressions in SearchQuery.value and __search lookup.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/search.txt7
-rw-r--r--docs/releases/3.1.txt5
2 files changed, 11 insertions, 1 deletions
diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt
index 949d95929e..65d54cfd8d 100644
--- a/docs/ref/contrib/postgres/search.txt
+++ b/docs/ref/contrib/postgres/search.txt
@@ -35,6 +35,10 @@ query and the vector.
To use the ``search`` lookup, ``'django.contrib.postgres'`` must be in your
:setting:`INSTALLED_APPS`.
+.. versionchanged:: 3.1
+
+ Support for query expressions was added.
+
``SearchVector``
================
@@ -108,7 +112,8 @@ See :ref:`postgresql-fts-search-configuration` for an explanation of the
.. versionchanged:: 3.1
- Support for ``'websearch'`` search type was added.
+ Support for ``'websearch'`` search type and query expressions in
+ ``SearchQuery.value`` were added.
``SearchRank``
==============
diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt
index 278752db90..de66d7805f 100644
--- a/docs/releases/3.1.txt
+++ b/docs/releases/3.1.txt
@@ -113,9 +113,14 @@ Minor features
* :class:`~django.contrib.postgres.search.SearchQuery` now supports
``'websearch'`` search type on PostgreSQL 11+.
+* :class:`SearchQuery.value <django.contrib.postgres.search.SearchQuery>` now
+ supports query expressions.
+
* The new :class:`~django.contrib.postgres.search.SearchHeadline` class allows
highlighting search results.
+* :lookup:`search` lookup now supports query expressions.
+
:mod:`django.contrib.redirects`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~