From 3baf92cf8230ad3a932986170fd07c8feae7ff2f Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Wed, 4 Mar 2020 13:33:12 +0100 Subject: Fixed #31340 -- Allowed query expressions in SearchQuery.value and __search lookup. --- docs/ref/contrib/postgres/search.txt | 7 ++++++- docs/releases/3.1.txt | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'docs') 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 ` 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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3