Update snippets handling for new store keys structure. Also omit
[idzebra-moved-to-github.git] / index / zinfo.c
index 60ae415..e13b8c3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zinfo.c,v 1.49 2005-08-18 12:50:18 adam Exp $
+/* $Id: zinfo.c,v 1.50 2005-08-26 10:13:31 adam Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -1416,7 +1416,9 @@ int zebraExplain_trav_ord(ZebraExplainInfo zei, void *handle,
 }
                          
 int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord,
-                            const char **db, int *set, int *use)
+                            int *index_type, 
+                            const char **db,
+                            int *set, int *use)
 {
     struct zebDatabaseInfoB *zdb;
     for (zdb = zei->databaseInfo; zdb; zdb = zdb->next)
@@ -1426,9 +1428,14 @@ int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord,
            if (zsui->info.which == ZEB_SU_SET_USE && 
                zsui->info.ordinal == ord)
            {
-               *db = zdb->databaseName;
-               *set = zsui->info.u.su.set;
-               *use = zsui->info.u.su.use;
+               if (db)
+                   *db = zdb->databaseName;
+               if (set)
+                   *set = zsui->info.u.su.set;
+               if (use)
+                   *use = zsui->info.u.su.use;
+               if (index_type)
+                   *index_type = zsui->info.index_type;
                return 0;
            }
     }