From f19fff63c246d96dd2014f68506485d8e6f64cd9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 14 Oct 2003 16:19:13 +0200 Subject: "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 --- myisam/ftdefs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'myisam/ftdefs.h') 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 #include -#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 -- cgit v1.2.1