X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=ed414bcd41e69521932824e0d277c5ebe5910dfa;hb=6b22ee11c602f66f94cef22bdf8077002e8d844a;hp=cafe44df76813484132385f17f4a7286e67bd93b;hpb=5a8a42bede922e70156e7b289db071592c71529b;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index cafe44d..ed414bc 100644 --- a/index/index.h +++ b/index/index.h @@ -1,4 +1,4 @@ -/* $Id: index.h,v 1.190 2007-01-15 20:08:25 adam Exp $ +/* $Id: index.h,v 1.195 2007-02-06 09:34:56 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -198,8 +198,8 @@ struct zebra_session { char *user_perm; char *dbaccesslist; int errCode; - zint hits; char *errString; + int partial_result; #if HAVE_SYS_TIMES_H struct tms tms1; struct tms tms2; @@ -213,6 +213,7 @@ struct zebra_session { zint records_updated; zint records_deleted; zint records_processed; + zint records_skipped; char *record_encoding; yaz_iconv_t iconv_to_utf8; @@ -233,6 +234,9 @@ struct zebra_session { NMEM nmem_error; struct zebra_limit *m_limit; + + int (*break_handler_func)(void *client_data); + void *break_handler_data; }; @@ -285,8 +289,9 @@ void resultSetAddTerm(ZebraHandle zh, ZebraSet s, int reg_type, ZebraSet resultSetAdd(ZebraHandle zh, const char *name, int ov); ZebraSet resultSetGet(ZebraHandle zh, const char *name); ZEBRA_RES resultSetAddRPN(ZebraHandle zh, NMEM m, Z_RPNQuery *rpn, - int num_bases, char **basenames, - const char *setname); + int num_bases, char **basenames, + const char *setname, + zint *hits, int *estimated_hit_count); RSET resultSetRef(ZebraHandle zh, const char *resultSetId); void resultSetDestroy(ZebraHandle zh, int num_names, char **names, int *statuses); @@ -411,6 +416,8 @@ ZEBRA_RES zapt_term_to_utf8(ZebraHandle zh, Z_AttributesPlusTerm *zapt, char *termz); +void zebra_set_partial_result(ZebraHandle zh); + int zebra_check_res(Res res); #define FIRST_IN_FIELD_STR "\001^"