MySQL 9.1.0
Source Code Documentation
fts0plugin.h File Reference

Full text search plugin header file. More...

#include "ha_prototypes.h"

Go to the source code of this file.

Macros

#define PARSER_INIT(parser, arg)
 
#define PARSER_DEINIT(parser, arg)
 

Functions

int fts_parse_by_parser (bool mode, uchar *query, ulint len, st_mysql_ftparser *parse, fts_ast_state_t *state)
 fts parse query by plugin parser. More...
 

Variables

struct st_mysql_ftparser fts_default_parser
 

Detailed Description

Full text search plugin header file.

Created 2013/06/04 Shaohua Wang

Macro Definition Documentation

◆ PARSER_DEINIT

#define PARSER_DEINIT (   parser,
  arg 
)
Value:
if (parser->deinit) { \
parser->deinit(arg); \
}
struct Parser parser

◆ PARSER_INIT

#define PARSER_INIT (   parser,
  arg 
)
Value:
if (parser->init) { \
parser->init(arg); \
}

Function Documentation

◆ fts_parse_by_parser()

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.

Returns
0 if parse successfully, or return non-zero. in: query parser state
0 if parse successfully, or return non-zero.
Parameters
modein: parse boolean mode
query_strin: query string
query_lenin: query string length
parserin: fts plugin parser
statein/out: parser state

Variable Documentation

◆ fts_default_parser

struct st_mysql_ftparser fts_default_parser
extern