Eneboo - Documentación para desarrolladores
src/libmysql_std/include/ft_global.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2000-2003 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 /* Written by Sergei A. Golubchik, who has a shared copyright to this code */
00017 
00018 /* some definitions for full-text indices */
00019 
00020 /* #include "myisam.h" */
00021 
00022 #ifndef _ft_global_h
00023 #define _ft_global_h
00024 #ifdef  __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 #define HA_FT_MAXBYTELEN 254
00029 #define HA_FT_MAXCHARLEN (HA_FT_MAXBYTELEN/3)
00030 
00031 typedef struct st_ft_info FT_INFO;
00032 struct _ft_vft
00033 {
00034   int       (*read_next)(FT_INFO *, char *);
00035   float     (*find_relevance)(FT_INFO *, byte *, uint);
00036   void      (*close_search)(FT_INFO *);
00037   float     (*get_relevance)(FT_INFO *);
00038   void      (*reinit_search)(FT_INFO *);
00039 };
00040 
00041 #ifndef FT_CORE
00042 struct st_ft_info
00043 {
00044   struct _ft_vft *please; /* INTERCAL style :-) */
00045 };
00046 #endif
00047 
00048 extern const char *ft_stopword_file;
00049 extern const char *ft_precompiled_stopwords[];
00050 
00051 extern ulong ft_min_word_len;
00052 extern ulong ft_max_word_len;
00053 extern ulong ft_query_expansion_limit;
00054 extern char  ft_boolean_syntax[15];
00055 
00056 int ft_init_stopwords(void);
00057 void ft_free_stopwords(void);
00058 
00059 #define FT_NL     0
00060 #define FT_BOOL   1
00061 #define FT_SORTED 2
00062 #define FT_EXPAND 4   /* query expansion */
00063 
00064 FT_INFO *ft_init_search(uint,void *, uint, byte *, uint,CHARSET_INFO *, byte *);
00065 my_bool ft_boolean_check_syntax_string(const byte *);
00066 
00067 #ifdef  __cplusplus
00068 }
00069 #endif
00070 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'