28 #define HA_FT_MAXBYTELEN 254
29 #define HA_FT_MAXCHARLEN (HA_FT_MAXBYTELEN/3)
31 #define DEFAULT_FTB_SYNTAX "+ -><()~*:\"\"&|"
36 int (*read_next)(
FT_INFO *,
char *);
37 float (*find_relevance)(
FT_INFO *, uchar *, uint);
38 void (*close_search)(
FT_INFO *);
39 float (*get_relevance)(
FT_INFO *);
40 void (*reinit_search)(
FT_INFO *);
46 uint (*get_version)();
47 ulonglong (*get_flags)();
53 #define FTS_ORDERED_RESULT (LL(1) << 1)
54 #define FTS_DOCID_IN_RESULT (LL(1) << 2)
56 #define FTS_DOC_ID_COL_NAME "FTS_DOC_ID"
71 extern const char *ft_stopword_file;
72 extern const char *ft_precompiled_stopwords[];
74 extern ulong ft_min_word_len;
75 extern ulong ft_max_word_len;
76 extern ulong ft_query_expansion_limit;
77 extern const char *ft_boolean_syntax;
80 int ft_init_stopwords(
void);
81 void ft_free_stopwords(
void);
88 FT_INFO *ft_init_search(uint,
void *, uint, uchar *, uint,
90 my_bool ft_boolean_check_syntax_string(
const uchar *);