Skip to content

Commit

Permalink
global: Replace fts_dovecot named filter with "fts dovecot" list filt…
Browse files Browse the repository at this point in the history
…er where possible
  • Loading branch information
sirainen authored and cmouse committed Mar 25, 2024
1 parent abbacd5 commit 9becdc5
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 32 deletions.
6 changes: 2 additions & 4 deletions source/configuration_manual/fts/dovecot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,12 @@ Example configuration using OBOX::
fts_dovecot = yes
}

fts_driver = dovecot

# Fall back to built in search.
#fts_enforced = no

# Local filesystem example:
# Use local filesystem storing FTS indexes
fts_dovecot {
fts dovecot {
fs posix {
prefix = %h/fts/
}
Expand All @@ -249,7 +247,7 @@ Example configuration using OBOX::
# Keep URL the same as obox plus the mail_path setting,
# Then append e.g. /fts/
# Example: http://<ip.address.>/%2Mu/%2.3Mu/%u/fts/
fts_dovecot {
fts dovecot {
fs fts-cache {
}
fs fscache {
Expand Down
26 changes: 14 additions & 12 deletions source/configuration_manual/fts/flatcurve.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Enabling flatcurve is designed to be as easy as adding these lines:
fts_flatcurve = yes
}
fts_driver = flatcurve
fts flatcurve {
}
Optional parameters
-------------------
Expand Down Expand Up @@ -109,17 +110,18 @@ FTS-Flatcurve Plugin Settings Example
fts_flatcurve = yes
}
fts_driver = flatcurve
# All of these are optional, and indicate the default values.
# They are listed here for documentation purposes; most people should
# not need to define/override in their config.
fts_flatcurve_commit_limit = 500
fts_flatcurve_max_term_size = 30
fts_flatcurve_min_term_size = 2
fts_flatcurve_optimize_limit = 10
fts_flatcurve_rotate_count = 5000
fts_flatcurve_rotate_time = 5000
fts_flatcurve_substring_search = no
fts flatcurve {
# All of these are optional, and indicate the default values.
# They are listed here for documentation purposes; most people should
# not need to define/override in their config.
commit_limit = 500
max_term_size = 30
min_term_size = 2
optimize_limit = 10
rotate_count = 5000
rotate_time = 5000
substring_search = no
}
Data Storage
------------
Expand Down
5 changes: 3 additions & 2 deletions source/configuration_manual/fts/solr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ Example Configuration
fts_solr = yes
}

fts_driver = solr
fts_solr_url = https://solr.example.org:8983/solr/dovecot/
fts solr {
url = https://solr.example.org:8983/solr/dovecot/
}

Important notes:

Expand Down
4 changes: 2 additions & 2 deletions source/configuration_manual/mail_location/obox/amazon_s3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ With IAM:
fs aws-s3 {
}
}
fts_dovecot {
fts dovecot {
fs fts-cache {
}
fs fscache {
Expand All @@ -234,6 +234,6 @@ Without IAM add the ACCESSKEY and SECRET to the URL:
.. code-block:: none
fs_s3_url = https://ACCESSKEY:[email protected]/
fts_dovecot {
fts dovecot {
fs_s3_url = https://ACCESSKEY:[email protected]/%8Mu/%u/fts/
}
2 changes: 1 addition & 1 deletion source/configuration_manual/mail_location/obox/dictmap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Cassandra/sproxyd Example Configuration
fs sproxyd {
}
}
fts_dovecot {
fts dovecot {
fs fts-cache {
}
fs fscache {
Expand Down
2 changes: 1 addition & 1 deletion source/configuration_manual/mail_location/obox/s3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ AWS S3 specific example configurations.
fs s3 {
}
}
fts_dovecot {
fts dovecot {
fs fts-cache {
}
fs fscache {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Example configuration
fs scality {
}
}
fts_dovecot {
fts dovecot {
fs fts-cache {
}
fs fscache {
Expand Down
2 changes: 1 addition & 1 deletion source/configuration_manual/plugins/fs-compress-plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Example Configuration
bucket = mails
}
}
fts_dovecot {
fts dovecot {
fs fscache {
size = 512M
path = /var/cache/fts/%4Nu
Expand Down
2 changes: 1 addition & 1 deletion source/installation_guide/upgrading/from-2.3-to-3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Removed features and their replacements
| ``service_count`` | Renamed to :dovecot_core:ref:`service_restart_request_count`. |
| | The default value is set to ``unlimited``. Value ``0`` is now a configuration error. |
+------------------------------------------------------------+------------------------------------------------------------------------------------------+
| ``fts`` | Replaced by :dovecot_plugin:ref:`fts_driver`. |
| ``fts`` | Replaced by :dovecot_plugin:ref:`fts` named filter. |
+------------------------------------------------------------+------------------------------------------------------------------------------------------+
| :dovecot_plugin:ref:`fts_autoindex_exclude`. | Changed to boolean property of ``mailbox``. |
+------------------------------------------------------------+------------------------------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion source/man/doveadm-fs.1.rst.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Otherwise the commands behave identically.

*config-filter-name*
Filter name to use when looking up the fs settings. For example
*mail_attachment*, *obox*, *metacache*, *fts_dovecot*. It's also
*mail_attachment*, *obox*, *metacache*, *fts/dovecot*. It's also
possible to use an empty filter name and specify the fs settings using
the **-o** parameters.

Expand Down
8 changes: 5 additions & 3 deletions source/settings/plugin/fts-dovecot-plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Settings
It must be somewhat synchronized with :dovecot_plugin:ref:`obox` and
:ref:`mail_location_settings`.

This setting isn't actually necessary to use. It's simpler to just add the
settings inside ``fts dovecot`` filter, which is used to enable the
Dovecot Pro FTS driver.

It is strongly recommended to use :ref:`fscache` to speed up
:ref:`obox <obox_settings>` and Dovecot FTS Engine operation.

Expand All @@ -77,9 +81,7 @@ Settings
fts_dovecot = yes
}
fts_driver = dovecot
fts_dovecot {
fts dovecot {
fs posix {
prefix = /var/fts/%u
}
Expand Down
20 changes: 17 additions & 3 deletions source/settings/plugin/fts-plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ fts plugin
Settings
^^^^^^^^

.. dovecot_plugin:setting:: fts
:plugin: fts
:values: @named_list_filter

Configures the used fts driver to perform FTS indexing. If not specified,
FTS is disabled. The filter name refers to the
:dovecot_plugin:ref:`fts_driver` setting.

Example::

fts solr {
[...]
}


.. dovecot_plugin:setting:: fts_autoindex
:default: no
:plugin: fts
Expand Down Expand Up @@ -105,9 +120,8 @@ Settings
:plugin: fts
:values: dovecot, solr, flatcurve

(previously named ``fts``)
Name of the backend implementation used to perform fts indexing.
If not specified, fts is disabled.
Configures the used fts driver to perform FTS indexing.
The :dovecot_plugin:ref:`fts` filter name refers to this setting.


.. dovecot_plugin:setting:: fts_enforced
Expand Down

0 comments on commit 9becdc5

Please sign in to comment.