X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzinfo.c;h=817f104cec4ad871a39c84aac4445ebedb67bf48;hb=2a0be28b861bf340b8213ad17438daf49e5cb8b0;hp=669f36689754fdc3c0ccdf72586bc7c05c90cc1f;hpb=f7a35c8865bf897ea727edf97b8b3b996a2f5419;p=idzebra-moved-to-github.git diff --git a/index/zinfo.c b/index/zinfo.c index 669f366..817f104 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -1,4 +1,4 @@ -/* $Id: zinfo.c,v 1.69 2006-09-15 10:45:13 adam Exp $ +/* $Id: zinfo.c,v 1.70 2006-09-20 10:51:25 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -1360,10 +1360,10 @@ int zebraExplain_lookup_attr_str(ZebraExplainInfo zei, assert (zei->curDatabaseInfo); for (zsui = &zei->curDatabaseInfo->attributeDetails->SUInfo; *zsui; zsui = &(*zsui)->next) - if ((*zsui)->info.index_type == index_type - && (*zsui)->info.cat == cat - && (*zsui)->info.which == ZEB_SU_STR - && !yaz_matchstr((*zsui)->info.u.str, str)) + if ( (index_type == -1 || (*zsui)->info.index_type == index_type) + && (*zsui)->info.cat == cat + && (*zsui)->info.which == ZEB_SU_STR + && !yaz_matchstr((*zsui)->info.u.str, str)) { struct zebSUInfoB *zsui_this = *zsui;