special characters in FTS Solr fail

piuma at piumalab.org piuma at piumalab.org
Tue Mar 30 17:20:56 EEST 2021


Hi, I want to report a bug about searching.
My dovecot version is 2.3.10.1 (a3d0e1171) and use Solr 7.7.2 for full text search.
The issue appear when try to search using solr special characters. For example
if I have emails with the subject that contain the only character "(" open
parenthesis, then try to search it I receive zero results.

In the Solr log seems the "(" is correctly excaped as "\(":

2021-03-30 15:14:20.304 INFO  (qtp333683827-20) [   x:dovecot] o.a.s.c.S.Request
[dovecot]  webapp=/solr path=/select
params={q={!lucene+q.op%3DAND}subject:\(&fl=uid,score&sort=uid+asc&fq=%2Bbox:6fff5821c5a2365df4060000d0d97f83+%2Buser:titolare01 at kendama.it&rows=631&wt=xml}
hits=0 status=0 QTime=2

I provide dovecot-sysreport as attachment.

Best regards
   Danilo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-sysreport-pecbox02.par-tec.it-1617116347.tar.gz
Type: application/gzip
Size: 7395 bytes
Desc: not available
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210330/08492366/attachment.gz>


More information about the dovecot mailing list