]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/fulltext/ft_wordbreaker.h
Continue phase 2 of modules stuff.
[citadel.git] / citadel / modules / fulltext / ft_wordbreaker.h
diff --git a/citadel/modules/fulltext/ft_wordbreaker.h b/citadel/modules/fulltext/ft_wordbreaker.h
new file mode 100644 (file)
index 0000000..5f1fb99
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * $Id$
+ *
+ */
+
+
+/*
+ * This is an ID for the wordbreaker module.  If we do pluggable wordbreakers
+ * later on, or even if we update this one, we can use a different ID so the
+ * system knows it needs to throw away the existing index and rebuild it.
+ */
+#define        FT_WORDBREAKER_ID       0x001f
+
+/*
+ * Minimum and maximum length of words to index
+ */
+#define WB_MIN                 3
+#define WB_MAX                 40
+
+void wordbreaker(char *text, int *num_tokens, int **tokens);
+