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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/ft_global.h b/include/ft_global.h
index 3937bd87c7f..bca13271f34 100644
--- a/include/ft_global.h
+++ b/include/ft_global.h
@@ -47,9 +47,10 @@ 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_reinit_search(handler) (((FT_DOCLIST *)(handler))->curdoc=-1)
+#define ft_close_search(handler) my_free(((gptr)(handler)),MYF(0))
+#define ft_get_relevance(handler) ((handler)->doc[(handler)->curdoc].weight)
+#define ft_get_docid(handler) ((handler)->doc[(handler)->curdoc].dpos)
+#define ft_reinit_search(handler) (((FT_DOCLIST *)(handler))->curdoc=-1)
#ifdef __cplusplus
}