X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Frpnsearch.c;h=7743362b6639250f4d20e336444f4d0abd41dcdd;hp=d35350ab07f5eee18c5117a4f7ee21adbae2f9d2;hb=89d3a004b7c651fd5673abfc192e1472dc4d4197;hpb=4e476a533ed351b90fd331a0dd827084686a9158 diff --git a/index/rpnsearch.c b/index/rpnsearch.c index d35350a..7743362 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -1,5 +1,5 @@ -/* $Id: rpnsearch.c,v 1.4 2006-12-20 14:19:21 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: rpnsearch.c,v 1.6 2007-01-15 15:10:17 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -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;