X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frssbool.c;h=d34f3c4c1e948bc21f2e3ca9520e77e821650a2e;hb=5b886a7358c16434d5c9f5f0d4af2f6e2e5d5c73;hp=235b104af3eb375bdfec2d7ffc9cddf9a67f0f37;hpb=e127268c91736bf5a116cbc24653da4b845ca046;p=idzebra-moved-to-github.git diff --git a/rset/rssbool.c b/rset/rssbool.c index 235b104..d34f3c4 100644 --- a/rset/rssbool.c +++ b/rset/rssbool.c @@ -4,7 +4,15 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: rssbool.c,v $ - * Revision 1.4 1996-10-29 13:55:27 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 @@ -23,8 +31,9 @@ * */ -#include #include +#include +#include #include #include @@ -40,6 +49,7 @@ static void r_close (RSFD rfd); 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); @@ -53,6 +63,7 @@ static const rset_control control_sand = r_delete, r_rewind, r_count, + r_hits, r_read, r_write, r_score @@ -67,6 +78,7 @@ static const rset_control control_sor = r_delete, r_rewind, r_count, + r_hits, r_read, r_write, r_score @@ -81,6 +93,7 @@ static const rset_control control_snot = r_delete, r_rewind, r_count, + r_hits, r_read, r_write, r_score @@ -417,6 +430,11 @@ static int r_count (RSET ct) 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;