| 1 |
<!DOCTYPE html> |
| 2 |
<html class="writer-html5" lang="en" data-content_root="../../../../"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 5 |
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 |
<title>Search Tiers — Cyrus IMAP 3.12.3 documentation</title> |
| 8 |
<link rel="stylesheet" type="text/css" href="../../../../_static/pygments.css?v=fa44fd50" /> |
| 9 |
<link rel="stylesheet" type="text/css" href="../../../../_static/css/theme.css?v=86f27845" /> |
| 10 |
<link rel="stylesheet" type="text/css" href="../../../../_static/graphviz.css?v=eafc0fe6" /> |
| 11 |
<link rel="stylesheet" href="../../../../_static/cyrus.css" type="text/css" /> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script src="../../../../_static/jquery.js?v=8dae8fb0"></script> |
| 16 |
<script src="../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
| 17 |
<script src="../../../../_static/documentation_options.js?v=2c828074"></script> |
| 18 |
<script src="../../../../_static/doctools.js?v=888ff710"></script> |
| 19 |
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script> |
| 20 |
<script src="../../../../_static/js/theme.js"></script> |
| 21 |
<link rel="index" title="Index" href="../../../../genindex.html" /> |
| 22 |
<link rel="search" title="Search" href="../../../../search.html" /> |
| 23 |
<link rel="next" title="Ports and Sockets" href="../ports-sockets.html" /> |
| 24 |
<link rel="prev" title="Spool Directories" href="mailspool.html" /> |
| 25 |
</head> |
| 26 |
|
| 27 |
<body class="wy-body-for-nav"> |
| 28 |
<div class="wy-grid-for-nav"> |
| 29 |
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| 30 |
<div class="wy-side-scroll"> |
| 31 |
<div class="wy-side-nav-search" > |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
<a href="../../../../index.html" class="icon icon-home"> |
| 36 |
Cyrus IMAP |
| 37 |
</a> |
| 38 |
<div class="version"> |
| 39 |
3.12.3 |
| 40 |
</div> |
| 41 |
<div role="search"> |
| 42 |
<form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get"> |
| 43 |
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> |
| 44 |
<input type="hidden" name="check_keywords" value="yes" /> |
| 45 |
<input type="hidden" name="area" value="default" /> |
| 46 |
</form> |
| 47 |
</div> |
| 48 |
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> |
| 49 |
<p class="caption" role="heading"><span class="caption-text">Cyrus IMAP</span></p> |
| 50 |
<ul class="current"> |
| 51 |
<li class="toctree-l1"><a class="reference internal" href="../../../../download.html">Download</a></li> |
| 52 |
<li class="toctree-l1"><a class="reference internal" href="../../../../quickstart.html">Quickstart Guide</a></li> |
| 53 |
<li class="toctree-l1"><a class="reference internal" href="../../../../overview.html">Overview</a></li> |
| 54 |
<li class="toctree-l1"><a class="reference internal" href="../../../../setup.html">Setup</a></li> |
| 55 |
<li class="toctree-l1 current"><a class="reference internal" href="../../../../operations.html">Operations</a><ul class="current"> |
| 56 |
<li class="toctree-l2"><a class="reference internal" href="../../manpages/index.html">Man pages</a></li> |
| 57 |
<li class="toctree-l2 current"><a class="reference internal" href="../../admin.html">Administrator Guide</a><ul class="current"> |
| 58 |
<li class="toctree-l3"><a class="reference internal" href="../../admin.html#architecture">Architecture</a></li> |
| 59 |
<li class="toctree-l3 current"><a class="reference internal" href="../../admin.html#management">Management</a><ul class="current"> |
| 60 |
<li class="toctree-l4 current"><a class="reference internal" href="../locations.html">File & Directory Locations</a></li> |
| 61 |
<li class="toctree-l4"><a class="reference internal" href="../ports-sockets.html">Ports and Sockets</a></li> |
| 62 |
<li class="toctree-l4"><a class="reference internal" href="../access-control.html">Access Control</a></li> |
| 63 |
<li class="toctree-l4"><a class="reference internal" href="../quotas.html">Quotas</a></li> |
| 64 |
<li class="toctree-l4"><a class="reference internal" href="../sieve.html">Cyrus Sieve</a></li> |
| 65 |
<li class="toctree-l4"><a class="reference internal" href="../nntp.html">Cyrus NNTP</a></li> |
| 66 |
<li class="toctree-l4"><a class="reference internal" href="../protlayer.html">Cyrus Prot Layer</a></li> |
| 67 |
<li class="toctree-l4"><a class="reference internal" href="../sop.html">Standard Operating Procedures</a></li> |
| 68 |
<li class="toctree-l4"><a class="reference internal" href="../eventsource.html">Cyrus Event Source</a></li> |
| 69 |
<li class="toctree-l4"><a class="reference internal" href="../monitoring.html">Monitoring</a></li> |
| 70 |
<li class="toctree-l4"><a class="reference internal" href="../config-mailboxdistribution.html">Mailbox Distribution</a></li> |
| 71 |
<li class="toctree-l4"><a class="reference internal" href="../murder/murder.html">Cyrus Murder</a></li> |
| 72 |
<li class="toctree-l4"><a class="reference internal" href="../tweaking.html">Tweaking Cyrus IMAP</a></li> |
| 73 |
</ul> |
| 74 |
</li> |
| 75 |
</ul> |
| 76 |
</li> |
| 77 |
<li class="toctree-l2"><a class="reference internal" href="../../faq.html">Frequently Asked Questions</a></li> |
| 78 |
</ul> |
| 79 |
</li> |
| 80 |
<li class="toctree-l1"><a class="reference internal" href="../../../../developers.html">Developers</a></li> |
| 81 |
<li class="toctree-l1"><a class="reference internal" href="../../../../support.html">Support/Community</a></li> |
| 82 |
</ul> |
| 83 |
<p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p> |
| 84 |
<ul> |
| 85 |
<li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li> |
| 86 |
</ul> |
| 87 |
|
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</nav> |
| 91 |
|
| 92 |
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > |
| 93 |
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| 94 |
<a href="../../../../index.html">Cyrus IMAP</a> |
| 95 |
</nav> |
| 96 |
|
| 97 |
<div class="wy-nav-content"> |
| 98 |
<div class="rst-content"> |
| 99 |
<div role="navigation" aria-label="Page navigation"> |
| 100 |
<ul class="wy-breadcrumbs"> |
| 101 |
<li><a href="../../../../index.html" class="icon icon-home" aria-label="Home"></a></li> |
| 102 |
<li class="breadcrumb-item"><a href="../../../../operations.html">Operations</a></li> |
| 103 |
<li class="breadcrumb-item"><a href="../../admin.html">Administrator Guide</a></li> |
| 104 |
<li class="breadcrumb-item"><a href="../locations.html">File & Directory Locations</a></li> |
| 105 |
<li class="breadcrumb-item active">Search Tiers</li> |
| 106 |
<li class="wy-breadcrumbs-aside"> |
| 107 |
<a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/reference/admin/locations/searchtiers.rst" class="fa fa-github"> Edit on GitHub</a> |
| 108 |
</li> |
| 109 |
</ul> |
| 110 |
<hr/> |
| 111 |
</div> |
| 112 |
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| 113 |
<div itemprop="articleBody"> |
| 114 |
|
| 115 |
<section id="search-tiers"> |
| 116 |
<span id="imap-admin-searchtiers"></span><h1>Search Tiers<a class="headerlink" href="#search-tiers" title="Link to this heading"></a></h1> |
| 117 |
<p>The Xapian search engine supports searching from multiple databases at |
| 118 |
once, creating a tiered database structure. To use Xapian, these tiers |
| 119 |
must be defined in <a class="reference internal" href="../../manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a> with the |
| 120 |
<cite>defaultsearchtier</cite> and <cite>searchpartition-name</cite> settings.</p> |
| 121 |
<section id="default-search-tier-name"> |
| 122 |
<h2>Default Search Tier Name<a class="headerlink" href="#default-search-tier-name" title="Link to this heading"></a></h2> |
| 123 |
<p>Specify the name of the default search tier using the <cite>defaultsearchtier</cite> |
| 124 |
setting:</p> |
| 125 |
<blockquote> |
| 126 |
<div><p><code class="docutils literal notranslate"><span class="pre">defaultsearchtier:</span></code> <empty string></p> |
| 127 |
<blockquote> |
| 128 |
<div><p>Name of the default tier that messages will be indexed to. Search |
| 129 |
indexes can be organized in tiers to allow index storage in different |
| 130 |
directories and physical media. See the man page of squatter for |
| 131 |
details. The default search tier also requires the definition |
| 132 |
of an according <em>searchtierpartition-name</em> entry.</p> |
| 133 |
<p>This option MUST be specified for xapian search.</p> |
| 134 |
</div></blockquote> |
| 135 |
</div></blockquote> |
| 136 |
</section> |
| 137 |
<section id="search-tier-partition-location"> |
| 138 |
<h2>Search Tier Partition Location<a class="headerlink" href="#search-tier-partition-location" title="Link to this heading"></a></h2> |
| 139 |
<p>Each search tier to be used requires a partition location be specified |
| 140 |
via a <cite>searchpartition-name</cite> setting, wherein "name" is replaced |
| 141 |
with the name of the mail spool for which this search partition is to |
| 142 |
be used, and prepended by the name of the tier with which it is |
| 143 |
associated:</p> |
| 144 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">{</span><span class="n">tier</span><span class="p">}</span><span class="n">searchpartition</span><span class="o">-</span><span class="p">{</span><span class="n">spool</span><span class="p">}</span> |
| 145 |
</pre></div> |
| 146 |
</div> |
| 147 |
<p>Again, building on our examples from <a class="reference internal" href="mailspool.html#imap-admin-locations-spool"><span class="std std-ref">Spool Directories</span></a>, |
| 148 |
here we have three spool partitions defined, so we need three search |
| 149 |
partitions for each tier. In this example, with just a single tier, we |
| 150 |
will be adding three search partitions.</p> |
| 151 |
<ul> |
| 152 |
<li><p>Sample:</p> |
| 153 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">defaultpartition</span><span class="p">:</span> <span class="n">main</span> |
| 154 |
<span class="n">partition</span><span class="o">-</span><span class="n">main</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span> |
| 155 |
<span class="n">partition</span><span class="o">-</span><span class="n">am</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">am</span> |
| 156 |
<span class="n">partition</span><span class="o">-</span><span class="n">nz</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">nz</span> |
| 157 |
<span class="n">partition</span><span class="o">-</span><span class="n">shared</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">shared</span> |
| 158 |
<span class="n">metapartition_files</span><span class="p">:</span> <span class="n">header</span> <span class="n">index</span> <span class="n">cache</span> <span class="n">expunge</span> <span class="n">squat</span> <span class="n">annotations</span> |
| 159 |
<span class="n">metapartition</span><span class="o">-</span><span class="n">main</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusmeta</span><span class="o">/</span><span class="n">main</span> |
| 160 |
<span class="n">metapartition</span><span class="o">-</span><span class="n">am</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusmeta</span><span class="o">/</span><span class="n">am</span> |
| 161 |
<span class="n">metapartition</span><span class="o">-</span><span class="n">nz</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusmeta</span><span class="o">/</span><span class="n">nz</span> |
| 162 |
<span class="n">metapartition</span><span class="o">-</span><span class="n">shared</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusmeta</span><span class="o">/</span><span class="n">shared</span> |
| 163 |
<span class="n">search_engine</span><span class="p">:</span> <span class="n">xapian</span> |
| 164 |
<span class="n">search_index_headers</span><span class="p">:</span> <span class="n">no</span> |
| 165 |
<span class="n">search_batchsize</span><span class="p">:</span> <span class="mi">8192</span> |
| 166 |
<span class="n">defaultsearchtier</span><span class="p">:</span> <span class="n">temp</span> |
| 167 |
<span class="n">tempsearchpartition</span><span class="o">-</span><span class="n">main</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">search</span><span class="o">/</span><span class="n">main</span> |
| 168 |
<span class="n">tempsearchpartition</span><span class="o">-</span><span class="n">am</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">search</span><span class="o">/</span><span class="n">am</span> |
| 169 |
<span class="n">tempsearchpartition</span><span class="o">-</span><span class="n">nz</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">search</span><span class="o">/</span><span class="n">nz</span> |
| 170 |
<span class="n">tempsearchpartition</span><span class="o">-</span><span class="n">shared</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">search</span><span class="o">/</span><span class="n">shared</span> |
| 171 |
</pre></div> |
| 172 |
</div> |
| 173 |
</li> |
| 174 |
</ul> |
| 175 |
<p>These settings are in <a class="reference internal" href="../../manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>:</p> |
| 176 |
<blockquote> |
| 177 |
<div><p><code class="docutils literal notranslate"><span class="pre">searchpartition-name:</span></code> <none></p> |
| 178 |
<blockquote> |
| 179 |
<div><p>The pathname where to store the xapian search indexes of <em>searchtier</em> |
| 180 |
for mailboxes of partition <em>name</em>. This must be configured for the |
| 181 |
<em>defaultsearchtier</em> and any additional search tier (see squatter for |
| 182 |
details).</p> |
| 183 |
<p>For example: if <em>defaultpartition</em> is defined as part1 and |
| 184 |
<em>defaultsearchtier</em> as tier1 then the configuration must contain |
| 185 |
an entry <em>tier1searchpartition-part1</em> that defines the path where to |
| 186 |
store this tier1's search index for the part1 partition.</p> |
| 187 |
<p>This option MUST be specified for xapian search.</p> |
| 188 |
</div></blockquote> |
| 189 |
</div></blockquote> |
| 190 |
</section> |
| 191 |
</section> |
| 192 |
|
| 193 |
|
| 194 |
</div> |
| 195 |
</div> |
| 196 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> |
| 197 |
<a href="mailspool.html" class="btn btn-neutral float-left" title="Spool Directories" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> |
| 198 |
<a href="../ports-sockets.html" class="btn btn-neutral float-right" title="Ports and Sockets" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> |
| 199 |
</div> |
| 200 |
|
| 201 |
<hr/> |
| 202 |
|
| 203 |
<div role="contentinfo"> |
| 204 |
<p>© Copyright 1993–2026, The Cyrus Team.</p> |
| 205 |
</div> |
| 206 |
|
| 207 |
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a |
| 208 |
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> |
| 209 |
provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| 210 |
|
| 211 |
|
| 212 |
</footer> |
| 213 |
</div> |
| 214 |
</div> |
| 215 |
</section> |
| 216 |
</div> |
| 217 |
<script> |
| 218 |
jQuery(function () { |
| 219 |
SphinxRtdTheme.Navigation.enable(true); |
| 220 |
}); |
| 221 |
</script> |
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
</body> |
| 227 |
</html> |