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