/* Copyright (c) 2014-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "fts-language.h"
#include "fts-filter-private.h"
#ifdef HAVE_FTS_STEMMER
#include <libstemmer.h>
struct fts_filter_stemmer_snowball {
};
{
(struct fts_filter_stemmer_snowball *)filter;
}
static int
const char *const *settings,
struct fts_filter **filter_r,
const char **error_r)
{
return -1;
}
sizeof(struct fts_filter));
return 0;
}
static int
const char **error_r)
{
"Creating a Snowball stemmer for language '%s' failed.",
return -1;
}
return 0;
}
static int
{
(struct fts_filter_stemmer_snowball *) filter;
return -1;
}
/* the only reason why this could fail is because of
out of memory. */
}
return 1;
}
#else
static int
const char *const *settings ATTR_UNUSED,
const char **error_r)
{
*error_r = "Snowball support not built in";
return -1;
}
static void
{
}
static int
const char **token ATTR_UNUSED,
const char **error_r ATTR_UNUSED)
{
return -1;
}
#endif
.class_name = "snowball",
.v = {
}
};