From aa37dc73fac74b9d431987a02cc2f604af452fcc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 10 Jun 2005 10:55:18 +0000 Subject: [PATCH] For approx_limit == 0, use unlimited hit count --- index/zebraapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4