![]() |
MySQL 9.0.0
Source Code Documentation
|
Full Text Search plugin tokenizer refer to MyISAM. More...
#include <cstdint>
#include "ft_global.h"
#include "mysql/plugin_ftparser.h"
#include "mysql/strings/m_ctype.h"
Go to the source code of this file.
Classes | |
struct | FT_WORD |
FTS query token. More... | |
Macros | |
#define | FTB_YES (fts_boolean_syntax[0]) |
#define | FTB_EGAL (fts_boolean_syntax[1]) |
#define | FTB_NO (fts_boolean_syntax[2]) |
#define | FTB_INC (fts_boolean_syntax[3]) |
#define | FTB_DEC (fts_boolean_syntax[4]) |
#define | FTB_LBR (fts_boolean_syntax[5]) |
#define | FTB_RBR (fts_boolean_syntax[6]) |
#define | FTB_NEG (fts_boolean_syntax[7]) |
#define | FTB_TRUNC (fts_boolean_syntax[8]) |
#define | FTB_LQUOT (fts_boolean_syntax[10]) |
#define | FTB_RQUOT (fts_boolean_syntax[11]) |
Functions | |
bool | true_word_char (int c, uint8_t ch) |
Check a char is true word. More... | |
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. More... | |
Variables | |
static const char * | fts_boolean_syntax = DEFAULT_FTB_SYNTAX |
Boolean search syntax. More... | |
Full Text Search plugin tokenizer refer to MyISAM.
Created 2014/11/17 Shaohua Wang
#define FTB_DEC (fts_boolean_syntax[4]) |
#define FTB_EGAL (fts_boolean_syntax[1]) |
#define FTB_INC (fts_boolean_syntax[3]) |
#define FTB_LBR (fts_boolean_syntax[5]) |
#define FTB_LQUOT (fts_boolean_syntax[10]) |
#define FTB_NEG (fts_boolean_syntax[7]) |
#define FTB_NO (fts_boolean_syntax[2]) |
#define FTB_RBR (fts_boolean_syntax[6]) |
#define FTB_RQUOT (fts_boolean_syntax[11]) |
#define FTB_TRUNC (fts_boolean_syntax[8]) |
#define FTB_YES (fts_boolean_syntax[0]) |
|
inline |
Tokenizer for ngram referring to ft_get_word(ft_parser.c) in MyISAM.
Differences: a. code format changed; b. stopword processing removed.
[in] | cs | charset |
[in,out] | start | doc start pointer |
[in,out] | end | doc end pointer |
[in,out] | word | token |
[in,out] | info | token info |
0 | eof |
1 | word found |
2 | left bracket |
3 | right bracket |
4 | stopword found |
|
inline |
Check a char is true word.
|
static |
Boolean search syntax.