]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-lucene: Don't mix definite + maybe queries for now, since it returns broken results.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 May 2014 16:34:42 +0000 (19:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 May 2014 16:34:42 +0000 (19:34 +0300)
src/plugins/fts-lucene/lucene-wrapper.cc

index db788b1bf5750f06b7ca2bda82f22c39c6d7cecc..79fba2be479d3d0d3ccaad4ac59f1f3f9a15c987 100644 (file)
@@ -1344,6 +1344,13 @@ int lucene_index_lookup(struct lucene_index *index,
                        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;