dovecot-2.2: fts-lucene: Don't mix definite + maybe queries for ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 7 16:35:21 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/4b67da0b86a3
changeset: 17335:4b67da0b86a3
user: Timo Sirainen <tss at iki.fi>
date: Wed May 07 19:34:42 2014 +0300
description:
fts-lucene: Don't mix definite + maybe queries for now, since it returns broken results.
diffstat:
src/plugins/fts-lucene/lucene-wrapper.cc | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 41622541a7a3 -r 4b67da0b86a3 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc Wed May 07 17:26:21 2014 +0300
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc Wed May 07 19:34:42 2014 +0300
@@ -1344,6 +1344,13 @@
return -1;
}
+ if (have_definites) {
+ /* FIXME: mixing up definite + maybe queries is broken. if the
+ definite query matched, it'll just assume that the maybe
+ queries matched as well */
+ return 0;
+ }
+
ARRAY_TYPE(lucene_query) maybe_queries;
t_array_init(&maybe_queries, 16);
bool have_maybies = false;
More information about the dovecot-cvs
mailing list