Mercurial > dovecot > core-2.2
changeset 18558:8d445959df03
lib-fts: Default to simple tokenizer algorithm
author | Teemu Huovila <teemu.huovila@dovecot.fi> |
---|---|
date | Sat, 09 May 2015 11:15:50 +0300 |
parents | 6a6ce51597f7 |
children | 2048dade16e7 |
files | src/lib-fts/fts-tokenizer-generic.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);