X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzserver.h;h=d2874a49ea3c72dbe7235fcdc73e8553e56d0483;hb=af7bc27d33843a8e667022f24589450c39f907f2;hp=447d6afea4a76b3be8c8185e247ebf0e95bafae5;hpb=4e45c8e2e01c52e8d03dbd9a0873a9e2ff7e5f91;p=idzebra-moved-to-github.git diff --git a/index/zserver.h b/index/zserver.h index 447d6af..d2874a4 100644 --- a/index/zserver.h +++ b/index/zserver.h @@ -1,10 +1,26 @@ /* - * Copyright (C) 1994-1995, Index Data I/S + * Copyright (C) 1994-1996, Index Data I/S * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: zserver.h,v $ - * Revision 1.18 1996-05-14 06:16:50 adam + * Revision 1.23 1996-12-23 15:30:46 adam + * Work on truncation. + * Bug fix: result sets weren't deleted after server shut down. + * + * Revision 1.22 1996/11/04 14:07:49 adam + * Moved truncation code to trunc.c. + * + * Revision 1.21 1996/10/29 14:09:58 adam + * Use of cisam system - enabled if setting isamc is 1. + * + * Revision 1.20 1996/06/04 10:19:02 adam + * Minor changes - removed include of ctype.h. + * + * Revision 1.19 1996/05/14 11:34:01 adam + * Scan support in multiple registers/databases. + * + * Revision 1.18 1996/05/14 06:16:50 adam * Compact use/set bytes used in search service. * * Revision 1.17 1995/12/08 16:22:57 adam @@ -86,8 +102,9 @@ typedef struct { int registerState; /* 0 (no commit pages), 1 (use commit pages) */ time_t registerChange; ZServerSet *sets; - Dict wordDict; - ISAM wordIsam; + Dict dict; + ISAM isam; + ISAMC isamc; Records records; int errCode; char *errString; @@ -100,13 +117,18 @@ int rpn_search (ZServerInfo *zi, const char *setname, int *hits); int rpn_scan (ZServerInfo *zi, Z_AttributesPlusTerm *zapt, + oid_value attributeset, int num_bases, char **basenames, int *position, int *num_entries, struct scan_entry **list, int *status); +RSET rset_trunc (ZServerInfo *zi, ISAM_P *isam_p, int no); + ZServerSet *resultSetAdd (ZServerInfo *zi, const char *name, int ov, RSET rset); ZServerSet *resultSetGet (ZServerInfo *zi, const char *name); +void resultSetDestroy (ZServerInfo *zi); + ZServerSetSysno *resultSetSysnoGet (ZServerInfo *zi, const char *name, int num, int *positions); void resultSetSysnoDel (ZServerInfo *zi, ZServerSetSysno *records, int num);