1 | /* |
2 | Copyright (c) 2000, 2010, Oracle and/or its affiliates |
3 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; version 2 of the License. |
7 | |
8 | This program is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | GNU General Public License for more details. |
12 | |
13 | You should have received a copy of the GNU General Public License |
14 | along with this program; if not, write to the Free Software |
15 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
16 | |
17 | /* Written by Sergei A. Golubchik, who has a shared copyright to this code */ |
18 | |
19 | /* some definitions for full-text indices */ |
20 | |
21 | #include "myisamdef.h" |
22 | #include "ft_global.h" |
23 | |
24 | /* If HA_FT_MAXLEN is change to 127 or over, it must be tested properly as |
25 | it may cause different representation on disk for full text indexes |
26 | */ |
27 | #define HA_FT_MAXLEN 126 |
28 | |
29 | int _mi_ft_cmp(MI_INFO *, uint, const uchar *, const uchar *); |
30 | int _mi_ft_add(MI_INFO *, uint, uchar *, const uchar *, my_off_t); |
31 | int _mi_ft_del(MI_INFO *, uint, uchar *, const uchar *, my_off_t); |
32 | |
33 | uint _mi_ft_convert_to_ft2(MI_INFO *, uint, uchar *); |
34 | |