-/* $Id: rsmultiandor.c,v 1.13 2005-01-15 20:47:16 adam Exp $
+/* $Id: rsmultiandor.c,v 1.16 2005-04-26 10:09:38 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
#include <stdlib.h>
#include <string.h>
-#include <zebrautl.h>
+#include <idzebra/util.h>
#include <idzebra/isamc.h>
#include <rset.h>
r_read_or,
r_write,
};
+
static const struct rset_control control_and =
{
"multi-and",
r_write,
};
-const struct rset_control *rset_kind_multior = &control_or;
-const struct rset_control *rset_kind_multiand = &control_and;
-
/* The heap structure:
* The rset contains a list or rsets we are ORing together
* The rfd contains a heap of heap-items, which contain
}
else
{
- *current = mrfd->hits;
+ *current = (double) (mrfd->hits);
*total = *current*stot/scur;
yaz_log(log_level, "r_pos: = %0.1f %0.1f", *current, *total);
}