MySQL  8.0.20
Source Code Documentation
fts0plugin.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2013, 2018, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License, version 2.0, as published by the
7 Free Software Foundation.
8 
9 This program is also distributed with certain software (including but not
10 limited to OpenSSL) that is licensed under separate terms, as designated in a
11 particular file or component or in included license documentation. The authors
12 of MySQL hereby grant you an additional permission to link the program and
13 your derivative works with the separately licensed software that they have
14 included with MySQL.
15 
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19 for more details.
20 
21 You should have received a copy of the GNU General Public License along with
22 this program; if not, write to the Free Software Foundation, Inc.,
23 51 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 
40 struct 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. */
53 int fts_parse_by_parser(ibool 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 */
unsigned char uchar
Definition: my_inttypes.h:51
Prototypes for global functions in ha_innodb.cc that are called by InnoDB C code. ...
static char * query
Definition: myisam_ftdump.cc:44
struct st_mysql_ftparser fts_default_parser
Definition: fts0plugin.cc:64
bool parse(MYSQL_THD thd, const string &query, bool is_prepared, Condition_handler *handler)
Definition: services.cc:81
Definition: fts0ast.h:256
Definition: plugin_ftparser.h:211
int fts_parse_by_parser(ibool mode, uchar *query, ulint len, st_mysql_ftparser *parse, fts_ast_state_t *state)
fts parse query by plugin parser.
Definition: fts0plugin.cc:239