summaryrefslogtreecommitdiff
path: root/myisam/ftdefs.h
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-10-14 16:19:13 +0200
committerserg@serg.mylan <>2003-10-14 16:19:13 +0200
commit5742f29a01873dc61d3ac9d66cc934e813802329 (patch)
treea2edbe68efe7bba2d565d91c3815736888388112 /myisam/ftdefs.h
parent8cc3951c8f00bbb4f66322c861cabb123122b4f3 (diff)
downloadmariadb-git-5742f29a01873dc61d3ac9d66cc934e813802329.tar.gz
"phrase search" should not match partial words (it should not match 'paraphrase searches')
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