property of the ISAM keys.
-/* $Id: rankstatic.c,v 1.1 2005-08-19 09:21:34 adam Exp $
+/* $Id: rankstatic.c,v 1.2 2005-08-19 10:48:36 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
#include <stdio.h>
#include <assert.h>
+#include <limits.h>
#ifdef WIN32
#include <io.h>
#endif
if (!si->no_rank_entries)
return -1; /* ranking not enabled for any terms */
- return staticrank+10;
+ /* staticrank = 0 is highest, MAXINT lowest */
+ return INT_MAX - staticrank; /* but score is reverse (logical) */
}
/*