From: Adam Dickmeiss Date: Fri, 10 Jun 2005 10:55:18 +0000 (+0000) Subject: For approx_limit == 0, use unlimited hit count X-Git-Tag: before.bug.529~402 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=aa37dc73fac74b9d431987a02cc2f604af452fcc For approx_limit == 0, use unlimited hit count --- diff --git a/index/zebraapi.c b/index/zebraapi.c index d536064..9a85e32 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.175 2005-06-09 10:39:53 adam Exp $ +/* $Id: zebraapi.c,v 1.176 2005-06-10 10:55:18 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -867,6 +867,8 @@ ZEBRA_RES zebra_select_databases (ZebraHandle zh, int num_bases, 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; }