X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=92a4e22b3a14e8b6c7319aac58c7f754b9fe89da;hb=e1352999e1be86b0ce5c2698bb62f9fc7d598a4f;hp=46c4c09a4aa8b9f0aa51e70a8da18bc6e3566800;hpb=e05cb2631696372c6bdabcabe22401efe9645ab7;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index 46c4c09..92a4e22 100644 --- a/index/index.h +++ b/index/index.h @@ -1,5 +1,5 @@ -/* $Id: index.h,v 1.188 2006-12-22 12:14:25 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: index.h,v 1.192 2007-01-16 15:31:23 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -35,6 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif #include +#include #include #include #include @@ -167,7 +168,7 @@ struct zebra_service { const char *path_root; RecTypeClass record_classes; NMEM nmem; - zebra_timing_t timing; + yaz_timing_t timing; }; @@ -197,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; @@ -284,8 +285,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); @@ -410,6 +412,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^"