-/* $Id: zinfo.c,v 1.62 2006-05-11 10:15:33 adam Exp $
+/* $Id: zinfo.c,v 1.64 2006-05-19 13:49:34 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
int set, int use)
{
struct zebSUInfoB *zsui;
+ int ord;
assert (zei->curDatabaseInfo);
+
+ ord = zebraExplain_lookup_attr_su(zei, 'w', set, use);
+ if (ord != -1)
+ return ord;
for (zsui = zei->curDatabaseInfo->attributeDetails->SUInfo;
zsui; zsui=zsui->next)
if (zsui->info.which == ZEB_SU_SET_USE &&
*zsui; zsui = &(*zsui)->next)
if ((*zsui)->info.index_type == index_type
&& (*zsui)->info.which == ZEB_SU_STR
- && !strcmp((*zsui)->info.u.str, str))
+ && !yaz_matchstr((*zsui)->info.u.str, str))
{
struct zebSUInfoB *zsui_this = *zsui;
{
struct zebSUInfoB *zsui = zebraExplain_add_sui_info(zei, index_type);
+ yaz_log(YLOG_WARN, "add_attr_su");
zebraExplain_addAttributeSet (zei, set);
zsui->info.which = ZEB_SU_SET_USE;
zsui->info.u.su.set = set;