changeset 20580:550ed4230b05

Fixed searching multiple mailboxes When searching multiple mailboxes, a condition to search these mailboxes is added to the query string. However, this condition has to be separated from the preceding condition by a space (a '+' in this case, as it's encoded); otherwise, Solr considers it to be part of the previous condition, in which case it will fail to parse it properly. Therefore, this patch adds that one missing character so it works again.
author x16a0 <m.k-92@gmx.de>
date Fri, 15 Jul 2016 09:53:12 +0200
parents 928bc88fb37a
children e8a810c9c96c
files src/plugins/fts-solr/fts-backend-solr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/fts-solr/fts-backend-solr.c	Thu Aug 04 22:15:25 2016 +0300
+++ b/src/plugins/fts-solr/fts-backend-solr.c	Fri Jul 15 09:53:12 2016 +0200
@@ -875,7 +875,7 @@
 	for (i = 0; boxes[i] != NULL; i++) ;
 	search_all_mailboxes = i > SOLR_QUERY_MAX_MAILBOX_COUNT;
 	if (!search_all_mailboxes)
-		str_append(str, "%2B(");
+		str_append(str, "+%2B(");
 	len = str_len(str);
 
 	for (i = 0; boxes[i] != NULL; i++) {