Mercurial > dovecot > core-2.2
changeset 13273:38e333c52d99
fts-lucene: Use TermQuery instead of PrefixQuery for searches.
Although PrefixQuery gives a more IMAP-like result, it's slower and can
fail if the prefix string is small.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 16 Aug 2011 23:37:42 +0300 |
parents | d4b6b0ebb200 |
children | 887bf77ae6f5 |
files | src/plugins/fts-lucene/lucene-wrapper.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/fts-lucene/lucene-wrapper.cc Tue Aug 16 23:31:31 2011 +0300 +++ b/src/plugins/fts-lucene/lucene-wrapper.cc Tue Aug 16 23:37:42 2011 +0300 @@ -913,7 +913,7 @@ if (fuzzy) ret = _CLNEW FuzzyQuery( tm ); else - ret = _CLNEW PrefixQuery( tm ); + ret = _CLNEW TermQuery( tm ); _CLDECDELETE(tm); return ret; } else {