<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Simon,<div class=""><br class=""></div><div class="">Try selecting the non conversation view before doing the search. It seems Roundcube has something weird there… but I could assure you it uses it when you set the non-conversation (non thread view). I think really it does even there, but perhaps it enter in a non-controlled loop with all the messages of the conversations or something similar… I think this is an issue in Roundcube rather than in Cyrus… We had this same doubt some time ago,</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">El 23 feb 2020, a las 23:54, ellie timoney <<a href="mailto:ellie@fastmail.com" class="">ellie@fastmail.com</a>> escribió:</div><br class="Apple-interchange-newline"><div class=""><div class="">I don't really understand search in any depth, but it's interesting to observe that, in addition to the different command (SEARCH vs THREAD), those two searches are also using different search criteria ("BODY linux" vs "TEXT linux").<br class=""><br class="">It might be informative to try do the SEARCH search with "TEXT linux" instead of "BODY linux", to narrow down whether the difference is due to the use of the SEARCH vs THREAD  command, or the use of the "BODY" vs "TEXT" search key?<br class=""><br class="">Looking at the source on master, SEARCH and THREAD both seem to be using the same search API, so at a glance it seems like they should both be using Xapian if either is.  And looking at the commit dates on those functions, it doesn't look like it's changed substantially since 3.0, at least not at a level I can easily see.<br class=""><br class="">I had a quick look at the RFC, and "BODY" searches just the message body, whereas "TEXT" searches both body and headers.  So I wonder if the difference is that TEXT needs to open all the message files to read the headers, whereas BODY can just return results straight from the Xapian index?<br class=""><br class="">I'm not sure if there's been changes to header searching (like, maybe we index more of the header content?) since 3.0, but this is getting beyond what I know off the cuff or can just casually look up.<br class=""><br class="">Anyway, if you could try "UID SEARCH TEXT linux" and see if that's similarly slow to the THREAD version, that would give us a definite pointer in the right direction.<br class=""><br class="">Cheers,<br class=""><br class="">ellie<br class=""><br class="">On Sun, Feb 23, 2020, at 10:11 PM, Frederik Himpe via Info-cyrus wrote:<br class=""><blockquote type="cite" class="">I have configured Cyrus 3.0.13 with the Xapian search engine and<br class="">enabled search_fuzzy_always. This appears to work fine when I search in<br class="">the message body using the Evolution mail client, as I get a response<br class="">quickly:<br class=""><br class=""><1582453709<L03163 UID SEARCH BODY linux<br class=""><blockquote type="cite" class="">1582453713>* SEARCH 226927<br class=""></blockquote>226929 226964 226974 226999 227215 227238 [...]<br class="">L03163 OK Completed (643<br class="">msgs in 0.970 secs)<br class=""><br class="">However when I search messages using the Roundcube webmail client,<br class="">Roundcube does not get a response in time and shows no results. An<br class="">strace of the imapd proceess indicates it is STATing, OPENing and<br class="">MMAPing all files in the mailbox.<br class=""><br class="">This is the log:<br class=""><1582455581<A0004 UID THREAD REFS US-ASCII ALL UNSEEN TEXT Linux<br class=""><blockquote type="cite" class="">1582455723>* THREAD<br class=""></blockquote>(229566)(229570)(229574)(229599)(229618)(229639)[...]<br class="">A0004 OK Completed (157 msgs in 11.340 secs)<br class=""><br class="">So it appears Roundcube is using a different command to search. Is it<br class="">expected that this command does not use the Xapian search engine? Is<br class="">there a way to make it use it?<br class=""><br class="">Some relevant snippets from imapd.conf:<br class="">sync_log: on<br class="">sync_log_channels: squatter<br class=""><br class="">conversations: 1<br class="">search_engine: xapian<br class="">search_index_headers: no<br class="">search_batchsize: 8192<br class="">search_fuzzy_always: 1<br class="">defaultsearchtier: temp<br class="">tempsearchpartition-default: /var/lib/cyrus/search.temp<br class="">datasearchpartition-default: /var/lib/cyrus/search.data<br class=""><br class="">cyrus.conf:<br class=""><br class="">EVENTS {<br class="">        squatter1       cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus <br class="">squatter -z data -t temp,data" at=0517<br class=""><br class="">}<br class="">DAEMON {<br class="">  squatter cmd="squatter -R"<br class="">}<br class=""><br class=""><br class="">Regards,<br class=""><br class="">-- <br class="">Frederik Himpe <<a href="mailto:frederik@frehi.be" class="">frederik@frehi.be</a>><br class=""><br class="">----<br class="">Cyrus Home Page: <a href="http://www.cyrusimap.org/" class="">http://www.cyrusimap.org/</a><br class="">List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" class="">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br class="">To Unsubscribe:<br class=""><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" class="">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br class=""><br class=""></blockquote>----<br class="">Cyrus Home Page: <a href="http://www.cyrusimap.org/" class="">http://www.cyrusimap.org/</a><br class="">List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" class="">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br class="">To Unsubscribe:<br class=""><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" class="">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br class=""></div></div></blockquote></div><br class=""></div><style class="">
body {
        font-family:Helvetica, Arial, sans-serif;
        font-size:12px;
        color:#333;
}
.moz-signature { color:#333!important; }
.firmasarenet {
        font-family:Helvetica, Arial, sans-serif;
        text-align:left;
        color:#333333;
}
.titulosarenet {
        font-family:Helvetica, Arial, sans-serif;
        font-weight:bold;
        font-size:12px;
        color:#333333;
}
.textosarenet {
        font-family:Helvetica, Arial, sans-serif;
        font-weight:bold;
        font-size:12px;
        color:#333333;
}
.dptosarenet { }
.imgsarenet { margin:0px 0px 10px 0px }
.imgsarenet img { }
.lnksarenet {
        color:#007AC4!important;
        font-size:12px;
        line-height:1.2;
        text-decoration:underline;
}
.firmasarenet a { color:#007ac4!important }
.imprimirsarenet {
        font-family:Helvetica, Arial, sans-serif;
        font-weight:normal;
        font-size:10px;
        line-height:1.2;
        color:#006600
}
</style></body></html>