]> mj.ucw.cz Git - libucw.git/blobdiff - lib/index.h
Started v2.5.
[libucw.git] / lib / index.h
index f8c5e193549605247a362afd82e7baee5539ddde..cb23ffd63a7b85b654432b8793cdf433e6613551 100644 (file)
@@ -11,6 +11,8 @@
 #include SHERLOCK_CUSTOM
 #include "charset/unistream.h"
 
+#define INDEX_VERSION (0x32240100+sizeof(struct card_attr))    /* Increase with each incompatible change in index format */
+
 /*
  *  Words and word complexes
  *
 
 /* Word and string types are defined in lib/custom.h */
 
-/* Global index parameters */
-
-struct index_params {
-  sh_time_t ref_time;                  /* Reference time (for document ages etc.) */
-};
-
 /* Index card attributes */
 
 struct card_attr {
@@ -61,6 +57,7 @@ enum card_flag {
   CARD_FLAG_MERGED = 8,                        /* Destination of a merge [merger] */
   CARD_FLAG_IMAGE = 16,                        /* Is an image object [scanner] */
   CARD_FLAG_FRAMESET = 32,             /* Contains a frameset to be ignored [scanner] */
+  CARD_FLAG_GIANT_CLASS = 64,          /* Belongs to a very large class, subject to penalties [merger] */
 };
 
 #define CARD_POS_SHIFT 5               /* Card positions are shifted this # of bits to the right */