]> mj.ucw.cz Git - libucw.git/commitdiff
Scanner improvements: create redirect backlinks, detect empty documents,
authorMartin Mares <mj@ucw.cz>
Fri, 16 Feb 2001 16:16:25 +0000 (16:16 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 16 Feb 2001 16:16:25 +0000 (16:16 +0000)
mark accented documents.

lib/index.h

index f2b491601b3aa72381bdf52b0e4bc77ec02a7fb7..8da94ac5296cef7e2d745c6348c05d44f624b913 100644 (file)
@@ -29,7 +29,13 @@ struct card_attr {
   u32 card;                            /* Reference to card description (either oid or filepos) */
   u32 site_id;
   byte weight;
-  byte rfu[3];
+  byte flags;
+  byte rfu[2];
+};
+
+enum card_flag {
+  CARD_FLAG_EMPTY = 1,                 /* Empty document (redirect, robot file etc.) */
+  CARD_FLAG_ACCENTED = 2               /* Document contains accented characters */
 };
 
 /* String fingerprints */