mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #28041 -- Added Lexeme expression to contrib.postgres.search.
This expression automatically escapes its input and allows fine-grained control over prefix matching and term weighting via logical combinations. Thanks Mariusz Felisiak, Adam Zapletal, Paolo Melchiorre, Jacob Walls, Adam Johnson, and Simon Charette for reviews. Co-authored-by: joetsoi <joetsoi@users.noreply.github.com> Co-authored-by: Karl Hobley <karl@kaed.uk> Co-authored-by: Alexandr Tatarinov <tatarinov1997@gmail.com>
This commit is contained in:
@@ -171,6 +171,12 @@ Minor features
|
||||
:mod:`django.contrib.postgres`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* The new :class:`Lexeme <django.contrib.postgres.search.Lexeme>` expression
|
||||
for full text search provides fine-grained control over search terms.
|
||||
``Lexeme`` objects automatically escape their input and support logical
|
||||
combination operators (``&``, ``|``, ``~``), prefix matching, and term
|
||||
weighting.
|
||||
|
||||
* Model fields, indexes, and constraints from :mod:`django.contrib.postgres`
|
||||
now include system checks to verify that ``django.contrib.postgres`` is an
|
||||
installed app.
|
||||
|
||||
Reference in New Issue
Block a user