dovecot-2.1: fts-lucene: Fixed handling "maybe" queries (unindex...

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 5 17:21:28 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/c700ff42a6cc
changeset: 13657:c700ff42a6cc
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 05 17:11:40 2011 +0200
description:
fts-lucene: Fixed handling "maybe" queries (unindexed headers)

diffstat:

 src/plugins/fts-lucene/lucene-wrapper.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 5cf885412627 -r c700ff42a6cc src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc	Fri Nov 04 21:57:05 2011 +0000
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc	Sat Nov 05 17:11:40 2011 +0200
@@ -1193,11 +1193,11 @@
 					result->scores_sorted = false;
 				last_uid = uid;
 
-				seq_range_array_add(uids_r, 0, uid);
 				score = array_append_space(&result->scores);
 				score->uid = uid;
 				score->score = hits->score(i);
 			}
+			seq_range_array_add(uids_r, 0, uid);
 		}
 		_CLDELETE(hits);
 		return ret;


More information about the dovecot-cvs mailing list