added coment on magic number 34 which is sqrroot of 1000
authorMarc Cromme <marc@indexdata.dk>
Wed, 3 May 2006 13:26:12 +0000 (13:26 +0000)
committerMarc Cromme <marc@indexdata.dk>
Wed, 3 May 2006 13:26:12 +0000 (13:26 +0000)
index/rank1.c

index 2856b4f..5bfae86 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rank1.c,v 1.28 2006-05-03 09:31:26 marc Exp $
+/* $Id: rank1.c,v 1.29 2006-05-03 13:26:12 marc Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -130,7 +130,7 @@ static void *begin (struct zebra_register *reg,
             if (cp)
                 si->entries[i].rank_weight = atoi (cp+3);
             else
-                si->entries[i].rank_weight = 34;
+              si->entries[i].rank_weight = 34; /* sqrroot of 1000 */
             yaz_log(log_level, " i=%d weight=%d g="ZINT_FORMAT, i,
                      si->entries[i].rank_weight, g);
            (si->no_rank_entries)++;