summaryrefslogtreecommitdiff
path: root/include/ft_global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ft_global.h')
-rw-r--r--include/ft_global.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ft_global.h b/include/ft_global.h
index 90641313235..3937bd87c7f 100644
--- a/include/ft_global.h
+++ b/include/ft_global.h
@@ -47,8 +47,9 @@ void ft_free_stopwords(void);
FT_DOCLIST * ft_init_search(void *, uint, byte *, uint, my_bool);
int ft_read_next(FT_DOCLIST *, char *);
-#define ft_close_search(handler) my_free(((gptr)(handler)),MYF(0))
-#define ft_get_relevance(handler) ((handler)->doc[(handler)->curdoc].weight)
+#define ft_close_search(handler) my_free(((gptr)(handler)),MYF(0))
+#define ft_get_relevance(handler) ((handler)->doc[(handler)->curdoc].weight)
+#define ft_reinit_search(handler) (((FT_DOCLIST *)(handler))->curdoc=-1)
#ifdef __cplusplus
}