fts-storage.h revision 0dffa25d211be541ee3c953b23566a1a990789df
#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;
bool virtual_mailbox:1;
bool fts_lookup_success:1;
bool indexing_timed_out:1;
bool 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