X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fidzebra%2Fapi.h;h=e2bddc2918e60db94d68456f07872bf1eb5def23;hb=3f385c9ee5fea1f18f200a598747c9b385eee9d8;hp=bd6516aafc24128f82620f3800781ed9b5e98afa;hpb=a876f6c2860bf13e36f47c8ce938d74b4ce98b8e;p=idzebra-moved-to-github.git diff --git a/include/idzebra/api.h b/include/idzebra/api.h index bd6516a..e2bddc2 100644 --- a/include/idzebra/api.h +++ b/include/idzebra/api.h @@ -1,4 +1,4 @@ -/* $Id: api.h,v 1.25 2005-06-02 11:59:53 adam Exp $ +/* $Id: api.h,v 1.27 2005-06-22 19:42:38 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -175,6 +175,17 @@ void zebra_result(ZebraHandle zh, int *code, char **addinfo); YAZ_EXPORT void zebra_clearError(ZebraHandle zh); + +/** + \brief Set limit before Zebra does approx hit count + \param zh session handle + \param approx_limit the limit + + Results will be approximiate if hit count is greater than the + limit specified. By default there is a high-limit (no limit). +*/ +ZEBRA_RES zebra_set_approx_limit(ZebraHandle zh, zint approx_limit); + /** \brief Search using PQF Query \param zh session handle @@ -242,7 +253,8 @@ ZEBRA_RES zebra_result_set_term_no(ZebraHandle zh, const char *setname, YAZ_EXPORT ZEBRA_RES zebra_result_set_term_info(ZebraHandle zh, const char *setname, int no, zint *count, int *approx, - char *termbuf, size_t *termlen); + char *termbuf, size_t *termlen, + const char **term_ref_id); /**