40#define true_word_char(c, ch) ((c) & (_MY_U | _MY_L | _MY_NMR) || (ch) == '_')
45#define FTB_YES (fts_boolean_syntax[0])
46#define FTB_EGAL (fts_boolean_syntax[1])
47#define FTB_NO (fts_boolean_syntax[2])
48#define FTB_INC (fts_boolean_syntax[3])
49#define FTB_DEC (fts_boolean_syntax[4])
50#define FTB_LBR (fts_boolean_syntax[5])
51#define FTB_RBR (fts_boolean_syntax[6])
52#define FTB_NEG (fts_boolean_syntax[7])
53#define FTB_TRUNC (fts_boolean_syntax[8])
54#define FTB_LQUOT (fts_boolean_syntax[10])
55#define FTB_RQUOT (fts_boolean_syntax[11])
83 info->weight_adjust =
info->wasign = 0;
87 for (; doc <
end; doc += (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) {
88 mbl =
cs->cset->ctype(
cs, &ctype, doc,
end);
106 info->quot = (
char *)1;
115 if (
info->prev ==
' ') {
122 }
else if (*doc ==
FTB_NO) {
126 info->weight_adjust++;
129 info->weight_adjust--;
140 info->weight_adjust =
info->wasign = 0;
143 for (word->
pos = doc; doc <
end;
144 doc += (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) {
145 mbl =
cs->cset->ctype(
cs, &ctype, doc,
end);
Some definitions for full-text indices.
#define DEFAULT_FTB_SYNTAX
Definition: ft_global.h:45
#define FTB_DEC
Definition: fts0tokenize.h:49
#define FTB_RQUOT
Definition: fts0tokenize.h:55
#define FTB_YES
Definition: fts0tokenize.h:45
#define FTB_LQUOT
Definition: fts0tokenize.h:54
#define FTB_EGAL
Definition: fts0tokenize.h:46
#define FTB_NO
Definition: fts0tokenize.h:47
#define FTB_RBR
Definition: fts0tokenize.h:51
#define FTB_INC
Definition: fts0tokenize.h:48
#define FTB_TRUNC
Definition: fts0tokenize.h:53
#define true_word_char(c, ch)
Check a char is true word.
Definition: fts0tokenize.h:40
static const char * fts_boolean_syntax
Boolean search syntax.
Definition: fts0tokenize.h:43
uchar fts_get_word(const CHARSET_INFO *cs, uchar **start, uchar *end, FT_WORD *word, MYSQL_FTPARSER_BOOLEAN_INFO *info)
Tokenizer for ngram referring to ft_get_word(ft_parser.c) in MyISAM.
Definition: fts0tokenize.h:76
#define FTB_LBR
Definition: fts0tokenize.h:50
#define FTB_NEG
Definition: fts0tokenize.h:52
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:177
A better implementation of the UNIX ctype(3) library.
unsigned char uchar
Definition: my_inttypes.h:52
Definition: commit_order_queue.h:34
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
@ FT_TOKEN_RIGHT_PAREN
Definition: plugin_ftparser.h:91
@ FT_TOKEN_LEFT_PAREN
Definition: plugin_ftparser.h:90
@ FT_TOKEN_WORD
Definition: plugin_ftparser.h:89
@ FT_TOKEN_EOF
Definition: plugin_ftparser.h:88
Definition: m_ctype.h:385
FTS query token.
Definition: fts0tokenize.h:58
uint len
word len
Definition: fts0tokenize.h:60
double weight
word weight, unused in innodb
Definition: fts0tokenize.h:61
uchar * pos
word start pointer
Definition: fts0tokenize.h:59
Definition: plugin_ftparser.h:129
unsigned int uint
Definition: uca9-dump.cc:75