dovecot-2.1: fts-lucene: Index the header name tokenized, or we ...

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/6e7658437688
changeset: 13658:6e7658437688
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 05 17:30:55 2011 +0200
description:
fts-lucene: Index the header name tokenized, or we can't search it.

diffstat:

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

diffs (12 lines):

diff -r c700ff42a6cc -r 6e7658437688 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc	Sat Nov 05 17:11:40 2011 +0200
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc	Sat Nov 05 17:30:55 2011 +0200
@@ -509,7 +509,7 @@
 		wchar_t wname[namesize];
 		lucene_utf8_n_to_tchar((const unsigned char *)hdr_name,
 				       strlen(hdr_name), wname, namesize);
-		index->doc->add(*_CLNEW Field(_T("hdr"), wname, Field::STORE_NO | Field::INDEX_UNTOKENIZED));
+		index->doc->add(*_CLNEW Field(_T("hdr"), wname, Field::STORE_NO | Field::INDEX_TOKENIZED));
 		index->doc->add(*_CLNEW Field(_T("hdr"), dest, Field::STORE_NO | Field::INDEX_TOKENIZED));
 
 		if (fts_header_want_indexed(hdr_name))


More information about the dovecot-cvs mailing list