dovecot-1.2: fts-solr: Don't double-escape "+" if we're filterin...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 1 17:30:04 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/e81dfb69bfc5
changeset: 8879:e81dfb69bfc5
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 01 10:29:58 2009 -0400
description:
fts-solr: Don't double-escape "+" if we're filtering what mailboxes we want.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/plugins/fts-solr/fts-backend-solr.c | 4 ++--
diffs (15 lines):
diff -r b44679b31dca -r e81dfb69bfc5 src/plugins/fts-solr/fts-backend-solr.c
--- a/src/plugins/fts-solr/fts-backend-solr.c Tue Mar 31 16:39:35 2009 -0400
+++ b/src/plugins/fts-solr/fts-backend-solr.c Wed Apr 01 10:29:58 2009 -0400
@@ -388,9 +388,9 @@ fts_backend_solr_filter_mailboxes(struct
str_append_c(fq, '(');
for (i = 0; i < inc_count; i++) {
if (i != 0)
- str_append(fq, " OR %2B");
+ str_append(fq, " OR +");
str_append_c(fq, '(');
- str_append(fq, "%2Bbox:");
+ str_append(fq, "+box:");
solr_add_pattern(fq, &includes[i]);
solr_add_ns_query(fq, _backend, includes[i].ns);
str_append_c(fq, ')');
More information about the dovecot-cvs
mailing list