<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">On Fri, May 17, 2019, at 23:52, Дилян Палаузов wrote:<br></div><blockquote type="cite" id="qt"><div style="font-family:Arial;">Hello,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">I set up a Cyrus system with one tier.  I think it works.  The .xapianactive files contain 'tiername: 0'.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">How can I insert a second tier?<br></div></blockquote><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">I have never tried this on a live server!  Clearly the right thing to do is to build a cassandane search which implements doing this so that we can make sure it works.<br></div><div style="font-family:Arial;"><br></div><blockquote type="cite" id="qt"><div style="font-family:Arial;">Adding a XYZsearchpartition-default to imapd.conf, together with defaultsearchtier: XYZ does not utilize the new directory: it stays empty and the .xapianactive files do not get updated to mention the new tier.<br></div></blockquote><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">That looks like it should work.  I assume you have restarted your cyrus since making the change?  I'm not certain that a rolling squatter will discover a new config in the way that imapd does.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Also - you'll need to run squatter in compact mode in order to add a new xapianactive entry.  The simplest could be:<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">squatter -z tiername -t tiername -o<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">I believe that given your current setup, this will just copy the entry from tiername:0 to tirename:1 and also create XYZ:0 in the xapianactive file at the same time.<br></div><div style="font-family:Arial;"><br></div><blockquote type="cite" id="qt"><div style="font-family:Arial;">Besides, if a message is MOVEd over IMAP, is any optimization utilized, to avoid reindexing the message, but just change the address of the document?<br></div></blockquote><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Yes, both XAPINDEXED mode where the GUID is read from xapian, and CONVINDEXED mode where the GUID is looked up via user.conversations and then mapped into the cyrus.indexed.db files in each xapian tier allow Xapian to skip reindexing when a message is already indexed.  This works for both MOVE and for re-uploading of an identical message file via IMAP.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Cheers,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Bron.<br></div><div style="font-family:Arial;"><br></div><div id="sig56629417"><div class="signature">--<br></div><div class="signature">  Bron Gondwana, CEO, FastMail Pty Ltd<br></div><div class="signature">  brong@fastmailteam.com<br></div><div class="signature"><br></div></div><div style="font-family:Arial;"><br></div></body></html>