diff options
author | unknown <serg@serg.mylan> | 2003-10-14 16:19:13 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-10-14 16:19:13 +0200 |
commit | f19fff63c246d96dd2014f68506485d8e6f64cd9 (patch) | |
tree | a2edbe68efe7bba2d565d91c3815736888388112 /myisam/ftdefs.h | |
parent | 2e1115edc1b5899975c33b4367256ce650d3a0f4 (diff) | |
download | mariadb-git-f19fff63c246d96dd2014f68506485d8e6f64cd9.tar.gz |
"phrase search" should not match partial words (it should not match 'paraphrase searches')
myisam/ft_parser.c:
word definition moved to ftdefs.h
myisam/ftdefs.h:
word definition moved to ftdefs.h
Diffstat (limited to 'myisam/ftdefs.h')
-rw-r--r-- | myisam/ftdefs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/myisam/ftdefs.h b/myisam/ftdefs.h index 88d7e79937b..c0a19262dcf 100644 --- a/myisam/ftdefs.h +++ b/myisam/ftdefs.h @@ -22,8 +22,9 @@ #include <m_ctype.h> #include <my_tree.h> -#define HYPHEN_IS_DELIM -#define HYPHEN_IS_CONCAT /* not used for now */ +#define true_word_char(s,X) (my_isalnum(s,X) || (X)=='_') +#define misc_word_char(X) ((X)=='\'') +#define word_char(s,X) (true_word_char(s,X) || misc_word_char(X)) #define COMPILE_STOPWORDS_IN |