New method result set method rs_hits that returns the number of
[idzebra-moved-to-github.git] / include / rsrel.h
index 8188a5f..a847c09 100644 (file)
@@ -4,7 +4,15 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: rsrel.h,v $
- * Revision 1.4  1997-09-05 15:30:05  adam
+ * Revision 1.6  1997-12-18 10:54:24  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/22 12:39:06  adam
+ * Added get_pos method for the ranked result sets.
+ *
+ * Revision 1.4  1997/09/05 15:30:05  adam
  * Changed prototype for chr_map_input - added const.
  * Added support for C++, headers uses extern "C" for public definitions.
  *
@@ -30,6 +38,9 @@ extern "C" {
 
 extern const rset_control *rset_kind_relevance;
 
+#define RSREL_METHOD_A  1
+#define RSREL_METHOD_B  2
+
 typedef struct rset_relevance_parms
 {
     int     key_size;
@@ -41,8 +52,11 @@ typedef struct rset_relevance_parms
     ISAM_P  *isam_positions;
 
     int     no_isam_positions;
-    int no_terms;
-    int *term_no;
+    int     no_terms;
+    int     *term_no;
+    int     (*get_pos)(const void *p);
+
+    int     method;
 } rset_relevance_parms;
 
 #ifdef __cplusplus