X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=include%2Frset.h;h=b364aeeba05e3c5946519db953f2fb306ba6971d;hp=2fa67a32b73674a5038a358476e320a5719b67a8;hb=0e56fa84bb4a5985c19a21926e86862c08d84689;hpb=3c547fb0a2e275ef21871d865116e288114c0910 diff --git a/include/rset.h b/include/rset.h index 2fa67a3..b364aee 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,4 +1,4 @@ -/* $Id: rset.h,v 1.39 2004-10-22 10:12:51 heikki Exp $ +/* $Id: rset.h,v 1.43 2004-12-08 14:02:36 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -29,9 +29,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* unfortunately we need the isam includes here, for the arguments for */ /* rsisamX_create */ -#include -#include -#include +#include +#include +#include #ifdef __cplusplus extern "C" { @@ -48,11 +48,14 @@ typedef struct rset *RSET; /* Result set */ */ struct rset_term { + /** the term itself */ char *name; - int nn; char *flags; - int count; int type; + /** the rset corresponding to this term */ + RSET rset; + /** private stuff for the ranking algorithm */ + void *rankpriv; }; typedef struct rset_term *TERMID; @@ -208,9 +211,12 @@ RSET rset_dup (RSET rs); /* int rset_type (RSET) */ #define rset_type(rs) ((rs)->control->desc) +/** rset_count counts or estimates the keys in it*/ +zint rset_count(RSET rs); + RSET rstemp_create( NMEM nmem, const struct key_control *kcontrol, int scope, - const char *temp_path); + const char *temp_path, TERMID term); RSET rsnull_create(NMEM nmem, const struct key_control *kcontrol);