Steve Dondley
2021-Aug-25 19:57 UTC
[OT] Re: What kind of search response time are you setting with solr full text search?
> I'm inclined to believe the problem is not that high up the food > chain. Because when I query IMAP on a single folder over telnet > following the instructions found here: > https://doc.dovecot.org/configuration_manual/fts/solr/, imap reports > that it's taking 3 to 4 seconds to return results: > > a search text "maynez" > a OK Search completed (3.386 + 0.001 + 0.250 secs). > > This particular search returns a few hundred results. > > The speed of the query changed depending on whether a lot of results > are returned. So if I search on a nonsensical word like "zyzzix", imap > reports results nearly instantaneously: > > a search text "zyzzix" > a OK Search completed (0.012 + 0.000 + 0.006 secs).I just did a quick test. I did a search over imap over telnet with fts plugins turned off and with them turned on. The search time was no better with it on than off. So I'm thinking I got something misconfigured somewhere. It seems IMAP may not be using solr to fetch results. But this would be odd since I definitely do see a big improvements in times with fts plugins turned on when using roundcube.
Steve Dondley
2021-Aug-25 20:05 UTC
[OT] Re: What kind of search response time are you setting with solr full text search?
> The search time was no better with it on than off. > > So I'm thinking I got something misconfigured somewhere. It seems IMAP > may not be using solr to fetch results. But this would be odd since I > definitely do see a big improvements in times with fts plugins turned > on when using roundcube.OK, I'm finally getting somewhere. Found this lead here: https://dovecot.org/pipermail/dovecot/2012-February/081514.html "doveadm fts optimize" throws an error: doveadm(root): Error: Couldn't drop privileges: User is missing UID (see mail_uid setting) Checking /var/log/mail.err, I see a ton of these entries: 83353 Aug 25 14:53:22 email dovecot: imap(s)<26536><gJ1Iw2bKKLh/AAAB>: Error: fts_solr: received invalid uid ' 83354 Aug 25 14:53:22 email dovecot: imap: Error: ' 83355 Aug 25 14:58:05 email dovecot: imap(s)<26637><Awma1GbKprh/AAAB>: Error: fts_solr: received invalid uid ' 83356 Aug 25 14:58:05 email dovecot: imap: Error: ' 83357 Aug 25 15:26:58 email dovecot: imap(s)<27217><TF0qOGfKort/AAAB>: Error: fts_solr: received invalid uid ' 83358 Aug 25 15:26:58 email dovecot: imap: Error: ' 83359 Aug 25 15:27:11 email dovecot: imap(s)<27217><TF0qOGfKort/AAAB>: Error: fts_solr: received invalid uid ' 83360 Aug 25 15:27:11 email dovecot: imap: Error: ' 83361 Aug 25 15:27:36 email dovecot: imap(s)<27217><TF0qOGfKort/AAAB>: Error: fts_solr: received invalid uid ' 83362 Aug 25 15:27:36 email dovecot: imap: Error: ' I think this will be nailed once I figure out this issue.