it is already on On March 31, 2019 03:47:52 Aki Tuomi via dovecot <dovecot at dovecot.org> wrote:> >> On 30 March 2019 21:37 Joan Moreau via dovecot <dovecot at dovecot.org> wrote: >> >> >> >> >> >> Hi >> >> When I do a FTS search (using Xapian plugin) in the BODY part, the plugins >> returns the matching IDs within few milliseconds (as seen in the log). >> >> However, roundcube (connected on dovecot) takes ages to show (headers only >> vie IMAP) the few results (I tested with a matching requests of 9 emails) >> >> What could be the root cause ? >> >> Thank you > > does it help if you set > > plugin { > fts_enforced=yes > } > --- > Aki Tuomi-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190331/c9314868/attachment.html>
Further on this topic: When choosing any headers in the search box, dovecot core calls the plugin TWICE (and returns the results quickly, but not immediatly after getting the IDs from the plugins) When choosing the BODY search, dovecot core calls the plugin ONCE (and never returns) (whereas the plugins returns properly the IDs) This is based on GIT version. (previous versions were working properly) Looking for feedback Thank you On 2019-03-30 21:48, Joan Moreau wrote:> it is already on > > On March 31, 2019 03:47:52 Aki Tuomi via dovecot <dovecot at dovecot.org> wrote: > > On 30 March 2019 21:37 Joan Moreau via dovecot <dovecot at dovecot.org> wrote: > > Hi > > When I do a FTS search (using Xapian plugin) in the BODY part, the plugins returns the matching IDs within few milliseconds (as seen in the log). > > However, roundcube (connected on dovecot) takes ages to show (headers only vie IMAP) the few results (I tested with a matching requests of 9 emails) > > What could be the root cause ? > > Thank you > > does it help if you set > > plugin { > fts_enforced=yes > } > > --- > Aki Tuomi-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190402/37dfa131/attachment.html>
On 2 Apr 2019, at 6.38, Joan Moreau via dovecot <dovecot at dovecot.org> wrote:> > Further on this topic: > > > > When choosing any headers in the search box, dovecot core calls the plugin TWICE (and returns the results quickly, but not immediatly after getting the IDs from the plugins) > > When choosing the BODY search, dovecot core calls the plugin ONCE (and never returns) (whereas the plugins returns properly the IDs) >If we simplify this, do you mean this calls it once and is fast: doveadm search -u user at domain mailbox inbox body helloworld But this calls twice and is slow: doveadm search -u user at domain mailbox inbox text helloworld And what about searching e.g. subject? : doveadm search -u user at domain mailbox inbox subject helloworld And does the slowness depend on whether there were any matches or not?> This is based on GIT version. (previous versions were working properly)Previous versions were fast? Do you mean v2.3.5?