summaryrefslogtreecommitdiff
path: root/myisam/ftdefs.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-05-10 12:39:01 +0200
committerunknown <serg@serg.mylan>2004-05-10 12:39:01 +0200
commit0bfea087af007309ce06d346ecfb0683a3d012e7 (patch)
treeaa63f206deb5fdf6e373750f990cbe8768ce3c53 /myisam/ftdefs.h
parent2d776e36d8dd205efccc18a75292308fd4c5d385 (diff)
downloadmariadb-git-0bfea087af007309ce06d346ecfb0683a3d012e7.tar.gz
backport from 4.1:
"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 62fa4362e19..46acf60d796 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(X) (isalnum(X) || (X)=='_')
+#define misc_word_char(X) ((X)=='\'')
+#define word_char(X) (true_word_char(X) || misc_word_char(X))
#define COMPILE_STOPWORDS_IN