kopia lustrzana https://github.com/wagtail/wagtail
Clarify: extra fields can be indexed by PostgreSQL backend (#5233)
rodzic
74ce4adb6b
commit
5d52f416df
docs/topics/search
|
@ -68,7 +68,7 @@ Indexing extra fields
|
|||
|
||||
.. warning::
|
||||
|
||||
Indexing extra fields is not supported by the database backend. If you're using the database backend, any other fields you define via ``search_fields`` will be ignored.
|
||||
Indexing extra fields is only supported by the :ref:`wagtailsearch_backends_elasticsearch` and :ref:`wagtailsearch_backends_postgresql`. Indexing extra fields is not supported by the :ref:`wagtailsearch_backends_database`. If you're using the database backend, any other fields you define via ``search_fields`` will be ignored.
|
||||
|
||||
|
||||
Fields must be explicitly added to the ``search_fields`` property of your ``Page``-derived model, in order for you to be able to search/filter on them. This is done by overriding ``search_fields`` to append a list of extra ``SearchField``/``FilterField`` objects to it.
|
||||
|
|
Ładowanie…
Reference in New Issue