{"id":105,"date":"2009-04-30T16:15:51","date_gmt":"2009-05-01T00:15:51","guid":{"rendered":"http:\/\/www.wilyness.com\/blog\/?p=105"},"modified":"2009-04-30T16:15:51","modified_gmt":"2009-05-01T00:15:51","slug":"fast-searching-on-dovecot-with-fedora","status":"publish","type":"post","link":"https:\/\/www.wilyness.com\/blog\/?p=105","title":{"rendered":"Fast searching on Dovecot with Fedora"},"content":{"rendered":"<p>Although dovecot comes with its own full-text indexed search, it doesn&#8217;t seem to be enabled by default, at least in Fedora 10.\u00c2\u00a0 This is a shame.\u00c2\u00a0 For me, it makes a search for body text take a few seconds rather than a couple minutes.<\/p>\n<p>To fix, modify your \/etc\/dovecot.conf and restart dovecot.<\/p>\n<ul>\n<li>Add fts and fts_squat to the mail_plugins line in your protocol section (protocol imap for me).<\/li>\n<p>Specifically, look for:<\/p>\n<pre>protocol imap {\r\n...\r\n#mail_plugins =\r\n...\r\n}<\/pre>\n<p>and change it to look more like:<\/p>\n<pre>protocol imap {\r\n...\r\nmail_plugins = fts fts_squat\r\n...\r\n}<\/pre>\n<li>Add fts = squat to the plugins section.<\/li>\n<pre>plugins {\r\n...\r\nfts = squat\r\n...\r\n}<\/pre>\n<\/ul>\n<p>Sadly, there was no Ubuntu help forum thread that made all this blindingly obvious, so I hope this post fills that need.  This all worked on Fedora 10 with dovecot 1.1.10.<\/p>\n<p>Have a nice day.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although dovecot comes with its own full-text indexed search, it doesn&#8217;t seem to be enabled by default, at least in Fedora 10.\u00c2\u00a0 This is a shame.\u00c2\u00a0 For me, it makes a search for body text take a few seconds rather &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.wilyness.com\/blog\/?p=105\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/105"}],"collection":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":0,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wilyness.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}