summaryrefslogtreecommitdiff
path: root/myisam/ftdefs.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-10-14 16:19:13 +0200
committerunknown <serg@serg.mylan>2003-10-14 16:19:13 +0200
commitf19fff63c246d96dd2014f68506485d8e6f64cd9 (patch)
treea2edbe68efe7bba2d565d91c3815736888388112 /myisam/ftdefs.h
parent2e1115edc1b5899975c33b4367256ce650d3a0f4 (diff)
downloadmariadb-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.h5
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