fts-storage.h revision 0211537cbf53ad17348408103fdb0c06de56ed5e
#ifndef FTS_STORAGE_H
#define FTS_STORAGE_H
#include "mail-storage-private.h"
#include "fts-api.h"
struct fts_scores {
int refcount;
};
struct fts_search_level {
};
struct fts_search_context {
struct fts_backend *backend;
struct mailbox_transaction_context *t;
struct mail_search_args *args;
enum fts_lookup_flags flags;
/* final scores, combined from all levels */
struct fts_scores *scores;
struct fts_indexer_context *indexer_ctx;
unsigned int virtual_mailbox:1;
unsigned int fts_lookup_success:1;
unsigned int indexing_timed_out:1;
unsigned int enforced:1;
};
/* Figure out if we want to use full text search indexes and update
backends in fctx accordingly. */
/* Perform the actual index lookup and update definite_uids and maybe_uids. */
/* Returns FTS backend for the given mailbox (assumes it has one). */
/* Returns FTS backend for the given mailbox list, or NULL if it has none. */
#endif