X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=9a85e3285a377f634b559880f42e51507309e0be;hb=aa37dc73fac74b9d431987a02cc2f604af452fcc;hp=5ee16a26b21ef3e25304d00863377b2584cea0ee;hpb=94bf7abfff6a30fab5567d8275db14122ed01822;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 5ee16a2..9a85e32 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.174 2005-06-07 11:36:38 adam Exp $ +/* $Id: zebraapi.c,v 1.176 2005-06-10 10:55:18 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -115,6 +115,7 @@ ZebraHandle zebra_open (ZebraService zs) zh->num_basenames = 0; zh->basenames = 0; + zh->approx_limit = 1000000000; zh->trans_no = 0; zh->trans_w_no = 0; @@ -864,6 +865,14 @@ ZEBRA_RES zebra_select_databases (ZebraHandle zh, int num_bases, return ZEBRA_OK; } +ZEBRA_RES zebra_set_approx_limit(ZebraHandle zh, zint approx_limit) +{ + if (approx_limit == 0) + approx_limit = 2000000000; + zh->approx_limit = approx_limit; + return ZEBRA_OK; +} + ZEBRA_RES zebra_search_RPN(ZebraHandle zh, ODR o, Z_RPNQuery *query, const char *setname, zint *hits) {