MySQL 8.4.2
Source Code Documentation
fts0plugin.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 2013, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/fts0plugin.h
29 Full text search plugin header file
30
31 Created 2013/06/04 Shaohua Wang
32 ***********************************************************************/
33
34#ifndef INNOBASE_FTS0PLUGIN_H
35#define INNOBASE_FTS0PLUGIN_H
36
37#include "ha_prototypes.h"
38
40
41struct fts_ast_state_t;
42
43#define PARSER_INIT(parser, arg) \
44 if (parser->init) { \
45 parser->init(arg); \
46 }
47#define PARSER_DEINIT(parser, arg) \
48 if (parser->deinit) { \
49 parser->deinit(arg); \
50 }
51
52/** fts parse query by plugin parser.
53 @return 0 if parse successfully, or return non-zero. */
54int fts_parse_by_parser(bool mode, /*!< in: query boolean mode */
55 uchar *query, /*!< in: query string */
56 ulint len, /*!< in: query string length */
57 st_mysql_ftparser *parse, /*!< in: fts plugin parser */
58 fts_ast_state_t *state); /*!< in: query parser state */
59
60#endif /* INNOBASE_FTS0PLUGIN_H */
struct st_mysql_ftparser fts_default_parser
Definition: fts0plugin.cc:67
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.
Definition: fts0plugin.cc:242
Prototypes for global functions in ha_innodb.cc that are called by InnoDB C code.
unsigned char uchar
Definition: my_inttypes.h:52
static char * query
Definition: myisam_ftdump.cc:47
bool parse(MYSQL_THD thd, const string &query, bool is_prepared, Condition_handler *handler)
Definition: services.cc:81
mode
Definition: file_handle.h:61
Definition: fts0ast.h:252
Definition: plugin_ftparser.h:216
unsigned long int ulint
Definition: univ.i:406