summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/dict.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tsearch2/dict.h')
-rw-r--r--contrib/tsearch2/dict.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/tsearch2/dict.h b/contrib/tsearch2/dict.h
index 86ea42263e5..a21086a49dd 100644
--- a/contrib/tsearch2/dict.h
+++ b/contrib/tsearch2/dict.h
@@ -38,4 +38,27 @@ typedef struct
void parse_cfgdict(text *in, Map ** m);
+/* return struct for any lexize function */
+typedef struct {
+ /* number of variant of split word , for example
+ Word 'fotballklubber' (norwegian) has two varian to split:
+ ( fotball, klubb ) and ( fot, ball, klubb ). So, dictionary
+ should return:
+ nvariant lexeme
+ 1 fotball
+ 1 klubb
+ 2 fot
+ 2 ball
+ 2 klubb
+
+ */
+ uint16 nvariant;
+
+ /* currently unused */
+ uint16 flags;
+
+ /* C-string */
+ char *lexeme;
+} TSLexeme;
+
#endif