// API call to perform searches.
// (This one does the "all of these words" search.)
// Caller is responsible for freeing the message list.
-Array *ft_search(const char *search_string) {
+Array *CtdlFullTextSearch(const char *search_string) {
int i, j, tok;
struct cdbdata cdb_bucket;
long msgnum, smsgnum;
}
extract_token(search_string, argbuf, 0, '|', sizeof search_string);
- matches = ft_search(search_string);
+ matches = CtdlFullTextSearch(search_string);
cprintf("%d %d msgs match all search words:\n", LISTING_FOLLOWS, array_len(matches));
if ((matches != NULL) && (array_len(matches) > 0)) {
if (!threading) {
CtdlRegisterProtoHook(cmd_srch, "SRCH", "Full text search");
CtdlRegisterDeleteHook(ft_delete_remove);
- //CtdlRegisterSearchFuncHook(ft_search, "fulltext");
CtdlRegisterSessionHook(do_fulltext_indexing, EVT_TIMER, PRIO_CLEANUP + 300);
}
// return our module name for the log