X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Frset.h;h=0fc191f2a46b3011a137cd677fed18c4d14f00d6;hb=e172ced0dcc937dfc433a33c7e20962b9e6b5ea0;hp=4f289192f4319a6731fbe7794e39afaaa5fbfa55;hpb=d5296d49d2481d1b83c3f40cb8639f1cb3af1895;p=idzebra-moved-to-github.git diff --git a/include/rset.h b/include/rset.h index 4f28919..0fc191f 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,4 +1,4 @@ -/* $Id: rset.h,v 1.40 2004-10-22 10:58:28 heikki Exp $ +/* $Id: rset.h,v 1.41 2004-10-22 11:33:28 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -48,11 +48,14 @@ typedef struct rset *RSET; /* Result set */ */ struct rset_term { + /** the term itself */ char *name; - zint nn; /* FIXME - what is this used for */ char *flags; - zint 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,6 +211,9 @@ 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);