4 * This module handles fulltext indexing of the message base.
17 #include <sys/types.h>
19 #if TIME_WITH_SYS_TIME
20 # include <sys/time.h>
24 # include <sys/time.h>
35 #include "sysdep_decls.h"
36 #include "citserver.h"
39 #include "serv_extensions.h"
44 #include "serv_fulltext.h"
45 #include "ft_wordbreaker.h"
48 void do_fulltext_indexing(void) {
49 lprintf(CTDL_DEBUG, "do_fulltext_indexing() started\n");
52 * Check to see whether the fulltext index is up to date; if there
53 * are no messages to index, don't waste any more time trying.
55 lprintf(CTDL_DEBUG, "CitControl.MMhighest = %ld\n", CitControl.MMhighest);
56 lprintf(CTDL_DEBUG, "CitControl.MMfulltext = %ld\n", CitControl.MMfulltext);
57 if (CitControl.MMfulltext >= CitControl.MMhighest) {
58 lprintf(CTDL_DEBUG, "Nothing to do!\n");
63 * If we've switched wordbreaker modules, burn the index and start
64 * over. FIXME write this...
68 lprintf(CTDL_DEBUG, "do_fulltext_indexing() finished\n");
73 /*****************************************************************************/
75 char *serv_fulltext_init(void)
77 CtdlRegisterSessionHook(do_fulltext_indexing, EVT_TIMER);