2 * Sherlock Gatherer: Data structures used in indices
4 * (c) 2001 Martin Mares <mj@ucw.cz>
9 #define MAX_WORD_LEN 64
14 WT_RESERVED, /* Reserved word type */
15 WT_TEXT, /* Ordinary text */
16 WT_EMPH, /* Emphasized text */
17 WT_SMALL, /* Small font */
18 WT_TITLE, /* Document title */
19 WT_SMALL_HEADING, /* Heading */
20 WT_BIG_HEADING, /* Larger heading */
21 WT_KEYWORD, /* Explicitly marked keyword */
22 WT_META, /* Various meta-information */
23 WT_ALT /* Alternate texts for graphical elements */
26 /* Index card attributes */
29 u32 card; /* Reference to card description (either oid or filepos) */
37 CARD_FLAG_EMPTY = 1, /* Empty document (redirect, robot file etc.) [scanner] */
38 CARD_FLAG_ACCENTED = 2, /* Document contains accented characters [scanner] */
39 CARD_FLAG_DUP = 4, /* Removed as a duplicate [merger] */
40 CARD_FLAG_MERGED = 8, /* Destination of a merge [merger] */
43 /* String fingerprints */
49 void fingerprint(byte *string, struct fingerprint *fp);