PGNet Dev
2020-Oct-31 21:01 UTC
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
On 10/31/20 9:55 AM, John Fawcett wrote:> I can contribute a patch that solves the segfault. Unfortunately though > fts search may be more broken than this. It does not give me search > results, even though I see it querying solr and getting hits.Thx -- hopefully it moves this in the right direction. Also on the 'good news' page, it appears there's been some progress on Thunderbird's use of backend/server search, TBird "search on server" doesn't -- NO comm with backend IMAP/SOLR; appears to be local-only search https://bugzilla.mozilla.org/show_bug.cgi?id=1673928 "A fix for this is upcoming." Remains to be seen if the doveadm search issues, and implications on backend problems, have any effect on the Thunderbird searches.
John Fawcett
2020-Nov-01 08:56 UTC
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
On 31/10/2020 22:01, PGNet Dev wrote:> On 10/31/20 9:55 AM, John Fawcett wrote: >> I can contribute a patch that solves the segfault. Unfortunately though >> fts search may be more broken than this. It does not give me search >> results, even though I see it querying solr and getting hits. > > Thx -- hopefully it moves this in the right direction. > > Also on the 'good news' page, it appears there's been some progress on > Thunderbird's use of backend/server search, > > ????TBird "search on server" doesn't -- NO comm with backend > IMAP/SOLR; appears to be local-only search > ???? https://bugzilla.mozilla.org/show_bug.cgi?id=1673928 > > ????"A fix for this is upcoming." > > Remains to be seen if the doveadm search issues, and implications on > backend problems, have any effect on the Thunderbird searches.At the moment I don't see other corrections needed in dovecot apart from command line doveadm fts which is not a show stopper. Via doveadm search I confirm - on my simple config - that search for accented or non accented characters works correctly as it does via imap connection. For the imap test you can take Thunderbird out of the equation by running another imap client, for example this three line php script (that relies on having the php imap extension installed) can be run from the command line with php -f filename.php and for me produces the same results as doveadm search. <?php $conn?? = imap_open('{server.example.com:993/imap/ssl}INBOX', 'username', 'password', OP_READONLY); $uids?? = imap_search($conn, 'BODY "tambi?n"', SE_UID); print_r($uids); Only thing I cannot vouch for is bringing dovecot fts library and config into the equation because my setup delegates almost everything to solr. Can you get evidence of things not working? For example tests run with soft_commit configured - that's important since without it the updates don't show up immediately in searches, that do show that the update is happening in solr via solr log, but then search is not working on accented characters, despite it working on other text in the same message? The solr logs also show whether the text was found or not via the "hits=" value in the logged searches, for example: 2020-11-01 08:32:42.231 INFO? (qtp24119573-21) [?? x:dovecot] o.a.s.c.S.Request [dovecot]? webapp=/solr path=/select params={q={!lucene+q.op%3DAND}body:tambi?n&fl=uid,score&sort=uid+asc&fq=%2Bbox:b1626f0fe8d9145e54100000c54a863a+%2Buser:john at voipsupport.it&rows=3202&wt=xml} hits=3 status=0 QTime=3 But if no hits are found, then dovecot cannot be expected to display results. It still may be an indexing problem though. John
PGNet Dev
2020-Nov-01 14:20 UTC
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
On 11/1/20 1:56 AM, John Fawcett wrote:> At the moment I don't see other corrections needed in dovecot apart from > command line doveadm fts which is not a show stopper. Via doveadm search > I confirm - on my simple config - that search for accented or non > accented characters works correctly as it does via imap connection.thx. hopefully it'll get considered for a next release soon.> Only thing I cannot vouch for is bringing dovecot fts library and config > into the equation because my setup delegates almost everything to solr.do i understand correctly that you're solr-indexing your dovecot mail store withOUT using dovecot fts plugin, and that -- with your aforementioned patch -- doveadm successfully uses the resulting indexes? i hadn't yet seriously considered _circumventing_ fts plugin; if this^ does get resolved soonish, then it's not a big deal. if not, an fts-plugin-less setup would be interesting to know more abt!> Can you get evidence of things not working? For example tests run with > soft_commit configured - that's important since without it the updates > don't show up immediately in searches, that do show that the update is > happening in solr via solr log, but then search is not working on > accented characters, despite it working on other text in the same > message? The solr logs also show whether the text was found or not via > the "hits=" value in the logged searches, for example: > > 2020-11-01 08:32:42.231 INFO? (qtp24119573-21) [?? x:dovecot] > o.a.s.c.S.Request [dovecot]? webapp=/solr path=/select > params={q={!lucene+q.op%3DAND}body:tambi?n&fl=uid,score&sort=uid+asc&fq=%2Bbox:b1626f0fe8d9145e54100000c54a863a+%2Buser:john at voipsupport.it&rows=3202&wt=xml} > hits=3 status=0 QTime=3 > > But if no hits are found, then dovecot cannot be expected to display > results. It still may be an indexing problem though.my current config has soft_commit enabled, fts_solr = url=https://solr.example.com:8984/solr/dovecot/ use_libfts soft_commit=yes batch_size=250 i'll see abt getting some clearer test results ...
Possibly Parallel Threads
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed)
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]