* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rssbool.c,v $
- * Revision 1.3 1996-10-08 13:00:41 adam
+ * Revision 1.6 1997-12-18 10:54:25 adam
+ * New method result set method rs_hits that returns the number of
+ * hits in result-set (if known). The ranked result set returns real
+ * number of hits but only when not combined with other operands.
+ *
+ * Revision 1.5 1997/09/09 13:38:16 adam
+ * Partial port to WIN95/NT.
+ *
+ * Revision 1.4 1996/10/29 13:55:27 adam
+ * Include of zebrautl.h instead of alexutil.h.
+ *
+ * Revision 1.3 1996/10/08 13:00:41 adam
* Bug fix: result sets with ranked operands in boolean operations weren't
* sorted.
*
*
*/
-#include <stdio.h>
#include <assert.h>
+#include <stdio.h>
+#include <string.h>
#include <rsbool.h>
-#include <alexutil.h>
+#include <zebrautl.h>
static void *r_create_and(const struct rset_control *sel, void *parms,
int *flags);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
static int r_count (RSET ct);
+static int r_hits (RSET ct, void *oi);
static int r_read (RSFD rfd, void *buf);
static int r_write (RSFD rfd, const void *buf);
static int r_score (RSFD rfd, int *score);
r_delete,
r_rewind,
r_count,
+ r_hits,
r_read,
r_write,
r_score
r_delete,
r_rewind,
r_count,
+ r_hits,
r_read,
r_write,
r_score
r_delete,
r_rewind,
r_count,
+ r_hits,
r_read,
r_write,
r_score
return info->key_no;
}
+static int r_hits (RSET ct, void *oi)
+{
+ return -1;
+}
+
static int r_read (RSFD rfd, void *buf)
{
struct rset_bool_rfd *p = rfd;