Added get_pos method for the ranked result sets.
[idzebra-moved-to-github.git] / include / rsrel.h
1 /*
2  * Copyright (C) 1994-1997, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: rsrel.h,v $
7  * Revision 1.5  1997-09-22 12:39:06  adam
8  * Added get_pos method for the ranked result sets.
9  *
10  * Revision 1.4  1997/09/05 15:30:05  adam
11  * Changed prototype for chr_map_input - added const.
12  * Added support for C++, headers uses extern "C" for public definitions.
13  *
14  * Revision 1.3  1996/11/08 11:08:02  adam
15  * New internal release.
16  *
17  * Revision 1.2  1996/06/11 10:53:16  quinn
18  * Relevance work.
19  *
20  * Revision 1.1  1995/09/08  14:52:09  adam
21  * Work on relevance sets.
22  *
23  */
24
25 #ifndef RSET_REL_H
26 #define RSET_REL_H
27
28 #include <rset.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 extern const rset_control *rset_kind_relevance;
35
36 typedef struct rset_relevance_parms
37 {
38     int     key_size;
39     int     max_rec;
40     int     (*cmp)(const void *p1, const void *p2);
41
42     ISAM    is;
43     ISAMC   isc;
44     ISAM_P  *isam_positions;
45
46     int     no_isam_positions;
47     int     no_terms;
48     int     *term_no;
49     int     (*get_pos)(const void *p);
50 } rset_relevance_parms;
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif