Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion source/reference/modules/engine.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:is-up-to-date: True
:last-updated: 4.3.1
:last-updated: 4.5.0

.. _crafter-engine:

Expand Down Expand Up @@ -770,6 +770,8 @@ In this section we will highlight some of the more commonly used properties in t
- Allows you to configure additional fields for dynamic navigation items
* - :ref:`engine-search-timeouts`
- Allows you to configure the search client connection timeout, socket timeout and number of threads
* - :ref:`engine-search-default-filters`
- Allows you to enable/disable default filters for search queries
* - :ref:`engine-content-length-headers`
- Allows you to configure the content-length header
* - :ref:`engine-static-methods-in-freemarker-templates`
Expand Down Expand Up @@ -1620,6 +1622,29 @@ The following allows you to configure the search client connection timeout, sock

|hr|

.. _engine-search-default-filters:

""""""""""""""""""""""
Search Default Filters
""""""""""""""""""""""
.. version_tag::
:label: Since
:version: 4.5.0

CrafterCMS by default excludes disabled and expired content from search results using default filters.
To enable/disable the default filters for all queries, set the following:

.. code-block:: properties
:caption: *CRAFTER_HOME/bin/apache-tomcat/shared/classes/crafter/engine/extension/server-config.properties*
:linenos:

# Indicates if the default filters (-disabled:"true",-expired_dt:[* TO now]) should be enabled (applies to all queries)
crafter.engine.search.defaultFilters.enabled=true

|

|hr|

.. _engine-content-length-headers:

""""""""""""""""""""""
Expand Down