From ec1a1d838f713f8a12616e567de3bcff8daf0e60 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 20 Dec 2006 14:29:04 +0000 Subject: [PATCH] Do not warn for truncmax limit --- index/rpnsearch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index/rpnsearch.c b/index/rpnsearch.c index d35350a..425cef8 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -1,4 +1,4 @@ -/* $Id: rpnsearch.c,v 1.4 2006-12-20 14:19:21 adam Exp $ +/* $Id: rpnsearch.c,v 1.5 2006-12-20 14:29:04 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -1699,7 +1699,7 @@ static int numeric_relation(ZebraHandle zh, Z_AttributesPlusTerm *zapt, yaz_log(log_level_rpn, "dict_lookup_grep: %s", term_tmp); r = dict_lookup_grep(zh->reg->dict, term_dict, 0, grep_info, max_pos, 0, grep_handle); - if (r) + if (r != 0 && r != 1) yaz_log(YLOG_WARN, "dict_lookup_grep fail, rel = gt: %d", r); yaz_log(log_level_rpn, "%d positions", grep_info->isam_p_indx); return 1; -- 1.7.10.4