mirror of
https://github.com/django/django.git
synced 2025-08-27 22:14:33 +00:00
Updated postgresql.org links to https and made them canonical.
This commit is contained in:
parent
adc93e8599
commit
51fbe2a60d
13 changed files with 23 additions and 23 deletions
|
@ -6,7 +6,7 @@ PostgreSQL specific aggregation functions
|
|||
:synopsis: PostgreSQL specific aggregation functions
|
||||
|
||||
These functions are described in more detail in the `PostgreSQL docs
|
||||
<http://www.postgresql.org/docs/current/static/functions-aggregate.html>`_.
|
||||
<https://www.postgresql.org/docs/current/static/functions-aggregate.html>`_.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ similarity threshold.
|
|||
|
||||
To use it, add ``'django.contrib.postgres'`` in your :setting:`INSTALLED_APPS`
|
||||
and activate the `pg_trgm extension
|
||||
<http://www.postgresql.org/docs/current/interactive/pgtrgm.html>`_ on
|
||||
<https://www.postgresql.org/docs/current/static/pgtrgm.html>`_ on
|
||||
PostgreSQL. You can install the extension using the
|
||||
:class:`~django.contrib.postgres.operations.TrigramExtension` migration
|
||||
operation.
|
||||
|
@ -43,7 +43,7 @@ the `unaccent extension on PostgreSQL`_. The
|
|||
:class:`~django.contrib.postgres.operations.UnaccentExtension` migration
|
||||
operation is available if you want to perform this activation using migrations).
|
||||
|
||||
.. _unaccent extension on PostgreSQL: http://www.postgresql.org/docs/current/interactive/unaccent.html
|
||||
.. _unaccent extension on PostgreSQL: https://www.postgresql.org/docs/current/static/unaccent.html
|
||||
|
||||
The ``unaccent`` lookup can be used on
|
||||
:class:`~django.db.models.CharField` and :class:`~django.db.models.TextField`::
|
||||
|
|
|
@ -6,7 +6,7 @@ Full text search
|
|||
|
||||
The database functions in the ``django.contrib.postgres.search`` module ease
|
||||
the use of PostgreSQL's `full text search engine
|
||||
<http://www.postgresql.org/docs/current/static/textsearch.html>`_.
|
||||
<https://www.postgresql.org/docs/current/static/textsearch.html>`_.
|
||||
|
||||
For the examples in this document, we'll use the models defined in
|
||||
:doc:`/topics/db/queries`.
|
||||
|
@ -167,7 +167,7 @@ In the event that all the fields you're querying on are contained within one
|
|||
particular model, you can create a functional index which matches the search
|
||||
vector you wish to use. The PostgreSQL documentation has details on
|
||||
`creating indexes for full text search
|
||||
<http://www.postgresql.org/docs/current/static/textsearch-tables.html#TEXTSEARCH-TABLES-INDEX>`_.
|
||||
<https://www.postgresql.org/docs/current/static/textsearch-tables.html#TEXTSEARCH-TABLES-INDEX>`_.
|
||||
|
||||
``SearchVectorField``
|
||||
---------------------
|
||||
|
@ -183,7 +183,7 @@ if it were an annotated ``SearchVector``::
|
|||
>>> Entry.objects.filter(search_vector='cheese')
|
||||
[<Entry: Cheese on Toast recipes>, <Entry: Pizza recipes>]
|
||||
|
||||
.. _PostgreSQL documentation: http://www.postgresql.org/docs/current/static/textsearch-features.html#TEXTSEARCH-UPDATE-TRIGGERS
|
||||
.. _PostgreSQL documentation: https://www.postgresql.org/docs/current/static/textsearch-features.html#TEXTSEARCH-UPDATE-TRIGGERS
|
||||
|
||||
Trigram similarity
|
||||
==================
|
||||
|
@ -193,7 +193,7 @@ three consecutive characters. In addition to the :lookup:`trigram_similar`
|
|||
lookup, you can use a couple of other expressions.
|
||||
|
||||
To use them, you need to activate the `pg_trgm extension
|
||||
<http://www.postgresql.org/docs/current/interactive/pgtrgm.html>`_ on
|
||||
<https://www.postgresql.org/docs/current/static/pgtrgm.html>`_ on
|
||||
PostgreSQL. You can install it using the
|
||||
:class:`~django.contrib.postgres.operations.TrigramExtension` migration
|
||||
operation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue