From: Timo Sirainen Date: Sat, 5 Nov 2011 15:30:55 +0000 (+0200) Subject: fts-lucene: Index the header name tokenized, or we can't search it. X-Git-Tag: 2.1.beta1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2945436697f00504ef2b3af6afbd8a097e5eed2;p=thirdparty%2Fdovecot%2Fcore.git fts-lucene: Index the header name tokenized, or we can't search it. --- diff --git a/src/plugins/fts-lucene/lucene-wrapper.cc b/src/plugins/fts-lucene/lucene-wrapper.cc index ed5e816c0a..8f1858fba7 100644 --- a/src/plugins/fts-lucene/lucene-wrapper.cc +++ b/src/plugins/fts-lucene/lucene-wrapper.cc @@ -509,7 +509,7 @@ int lucene_index_build_more(struct lucene_index *index, uint32_t uid, 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))