MySQL 9.1.0
Source Code Documentation
|
Full Text Search plugin support. More...
#include "fts0plugin.h"
#include "ft_global.h"
#include "fts0ast.h"
#include "fts0tokenize.h"
#include "mysql/plugin.h"
Functions | |
static int | fts_default_parser_init (MYSQL_FTPARSER_PARAM *param) |
FTS default parser init. More... | |
static int | fts_default_parser_deinit (MYSQL_FTPARSER_PARAM *param) |
FTS default parser deinit. More... | |
static int | fts_default_parser_parse (MYSQL_FTPARSER_PARAM *param) |
FTS default parser parse from ft_static.c in MYISAM. More... | |
static fts_ast_node_t * | fts_query_get_oper_node (MYSQL_FTPARSER_BOOLEAN_INFO *info, fts_ast_state_t *state) |
Get a operator node from token boolean info. More... | |
static int | fts_query_add_word_for_parser (MYSQL_FTPARSER_PARAM *param, char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *info) |
FTS plugin parser 'myql_add_word' callback function for query parse. More... | |
static int | fts_parse_query_internal (MYSQL_FTPARSER_PARAM *param, char *query, int len) |
FTS plugin parser 'myql_parser' callback function for query parse. More... | |
int | fts_parse_by_parser (bool mode, uchar *query_str, ulint query_len, st_mysql_ftparser *parser, fts_ast_state_t *state) |
fts parse query by plugin parser. More... | |
Variables | |
struct st_mysql_ftparser | fts_default_parser |
Full Text Search plugin support.
Created 2013/06/04 Shaohua Wang
|
static |
FTS default parser deinit.
param | in: plugin parser param |
|
static |
FTS default parser init.
param | in: plugin parser param |
|
static |
FTS default parser parse from ft_static.c in MYISAM.
param | in: plugin parser param |
int fts_parse_by_parser | ( | bool | mode, |
uchar * | query_str, | ||
ulint | query_len, | ||
st_mysql_ftparser * | parser, | ||
fts_ast_state_t * | state | ||
) |
fts parse query by plugin parser.
mode | in: parse boolean mode |
query_str | in: query string |
query_len | in: query string length |
parser | in: fts plugin parser |
state | in/out: parser state |
|
static |
FTS plugin parser 'myql_parser' callback function for query parse.
Refer to 'MYSQL_FTPARSER_PARAM' for more detail.
param | in: parser param |
query | in: query string |
len | in: query length |
|
static |
FTS plugin parser 'myql_add_word' callback function for query parse.
Refer to 'MYSQL_FTPARSER_PARAM' for more detail. Note: a. Parse logic refers to 'ftb_query_add_word' from ft_boolean_search.c in MYISAM; b. Parse node or tree refers to fts0pars.y.
param | in: parser param |
word | in: token |
word_len | in: token length |
info | in: token info |
|
static |
Get a operator node from token boolean info.
info | in: token info |
state | in/out: query parse state |
struct st_mysql_ftparser fts_default_parser |