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