dovecot-2.2: lib-fts: Default to simple tokenizer algorithm

dovecot at dovecot.org dovecot at dovecot.org
Sat May 9 08:32:35 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/8d445959df03
changeset: 18558:8d445959df03
user:      Teemu Huovila <teemu.huovila at dovecot.fi>
date:      Sat May 09 11:15:50 2015 +0300
description:
lib-fts: Default to simple tokenizer algorithm

diffstat:

 src/lib-fts/fts-tokenizer-generic.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 6a6ce51597f7 -r 8d445959df03 src/lib-fts/fts-tokenizer-generic.c
--- a/src/lib-fts/fts-tokenizer-generic.c	Sat May 09 11:15:34 2015 +0300
+++ b/src/lib-fts/fts-tokenizer-generic.c	Sat May 09 11:15:50 2015 +0300
@@ -30,7 +30,7 @@
 {
 	struct generic_fts_tokenizer *tok;
 	unsigned int max_length = FTS_DEFAULT_TOKEN_MAX_LENGTH;
-	enum boundary_algorithm algo = BOUNDARY_ALGORITHM_NONE;
+	enum boundary_algorithm algo = BOUNDARY_ALGORITHM_SIMPLE;
 	unsigned int i;
 
 	for (i = 0; settings[i] != NULL; i += 2) {
@@ -44,10 +44,10 @@
 				return -1;
 			}
 		} else if (strcasecmp(key, "algorithm") == 0) {
-			if (strcasecmp(value, ALGORITHM_SIMPLE_NAME) == 0)
-				algo = BOUNDARY_ALGORITHM_SIMPLE;
-			else if (strcasecmp(value, ALGORITHM_TR29_NAME) == 0)
+			if (strcasecmp(value, ALGORITHM_TR29_NAME) == 0)
 				algo = BOUNDARY_ALGORITHM_TR29;
+			else if (strcasecmp(value, ALGORITHM_SIMPLE_NAME) == 0)
+				;
 			else {
 				*error_r = t_strdup_printf(
 				        "Invalid algorithm: %s", value);


More information about the dovecot-cvs mailing list