fts-backend-lucene.c revision 85a4ae7e8df7ea45a7665828e5edf48a5fc85730
/* Copyright (C) 2006 Timo Sirainen */
#include "lib.h"
#include "array.h"
#include "mail-storage-private.h"
#include "lucene-wrapper.h"
#include "fts-lucene-plugin.h"
#define LUCENE_INDEX_DIR_NAME "lucene-indexes"
struct lucene_mail_storage {
struct lucene_index *index;
struct mailbox *selected_box;
int refcount;
};
struct lucene_fts_backend {
struct fts_backend backend;
struct lucene_mail_storage *lstorage;
};
{
}
}
{
struct lucene_mail_storage *lstorage;
struct lucene_fts_backend *backend;
const char *path;
"INBOX");
/* in-memory indexes */
return NULL;
}
}
}
{
struct lucene_fts_backend *backend =
(struct lucene_fts_backend *)_backend;
}
}
static int
{
struct lucene_fts_backend *backend =
(struct lucene_fts_backend *)_backend;
}
static struct fts_backend_build_context *
{
struct lucene_fts_backend *backend =
(struct lucene_fts_backend *)_backend;
struct fts_backend_build_context *ctx;
return ctx;
}
static int
{
struct lucene_fts_backend *backend =
return -1;
}
static int
{
struct lucene_fts_backend *backend =
return ret;
}
static void
{
struct lucene_fts_backend *backend =
(struct lucene_fts_backend *)_backend;
}
static void
bool committed __attr_unused__)
{
}
static int
{
struct lucene_fts_backend *backend =
(struct lucene_fts_backend *)_backend;
}
static int
{
struct lucene_fts_backend *backend =
(struct lucene_fts_backend *)_backend;
}
struct fts_backend fts_backend_lucene = {
"lucene",
TRUE,
{
}
};