mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
"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
This commit is contained in:
@ -73,15 +73,6 @@ FT_WORD * ft_linearize(TREE *wtree)
|
||||
DBUG_RETURN(wlist);
|
||||
}
|
||||
|
||||
#define true_word_char(s,X) (my_isalnum(s,X) || (X)=='_')
|
||||
#ifdef HYPHEN_IS_DELIM
|
||||
#define misc_word_char(X) ((X)=='\'')
|
||||
#else
|
||||
#define misc_word_char(X) ((X)=='\'' || (X)=='-')
|
||||
#endif
|
||||
#define word_char(s,X) (true_word_char(s,X) || misc_word_char(X))
|
||||
|
||||
|
||||
/* returns:
|
||||
* 0 - eof
|
||||
* 1 - word found
|
||||
|
Reference in New Issue
Block a user