Searching 30 GB mailbox

Einar Bjarni Halldórsson einar at
Thu Dec 2 12:07:17 UTC 2021

> If you have fts_enforced = yes then that SEARCH probably goes to solr even if message-id is found from cache. So the delay is probably on solr side.
> Can you try to remove fts_enforced for that one particular user?
I only added fts_enforced yesterday. When I sent the original post I 
wasn't running with fts_enforced.

I did finally manage to query solr with curl with the query dovecot 
issues and I get this response:

<?xml version="1.0" encoding="UTF-8"?>

<lst name="responseHeader">
   <int name="status">0</int>
   <int name="QTime">1</int>
   <lst name="params">
     <str name="json">{    "params": {        "q": "{!lucene q.op=AND} 
hdr:<64jf4CStuxzUvATjBbRVP3IbJnMbEguVXzOa1OSmjIg at>", 
"fl": "uid,score",        "sort": "uid asc",        "fq": 
"+box:c92f64f79f0d1ed01e6d5b314f04886c +user:hostmasterlog", "rows": 
5327110,        "wt": xml     }}</str>
<result name="response" numFound="1" start="0" maxScore="131.64821" 
     <long name="uid">5166713</long>
     <float name="score">131.64821</float></doc>


If I search for the UID I get

3 fetch 5166713 ENVELOPE
3 BAD Error in IMAP command FETCH: Invalid messageset (0.001 + 0.000 secs).
If I run the search in IMAP I get

<64jf4CStuxzUvATjBbRVP3IbJnMbEguVXzOa1OSmjIg at>
* 4465180 EXISTS
4 OK Search completed (29.674 + 0.000 + 29.523 secs).

Isn't it likely that the dovecot index and solr index are out of sync? 
Solr seems to point to a UID that doesn't exist in dovecot. If so, how 
can I fix it?


More information about the dovecot mailing list