Dont log each indexed entry
[idzebra-moved-to-github.git] / include / idzebra / api.h
index 75a5d65..53ae58d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: api.h,v 1.2 2004-09-27 10:44:48 adam Exp $
+/* $Id: api.h,v 1.4 2004-12-02 17:27:03 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -149,11 +149,11 @@ YAZ_EXPORT int zebra_deleleResultSet(ZebraHandle zh, int function,
 
 /* Browse */
 YAZ_EXPORT int zebra_scan (ZebraHandle zh, ODR stream,
-                           Z_AttributesPlusTerm *zapt,
-                           oid_value attributeset,
-                           int *position, int *num_entries,
-                           ZebraScanEntry **list,
-                           int *is_partial);
+                          Z_AttributesPlusTerm *zapt,
+                          oid_value attributeset,
+                          int *position, int *num_entries,
+                          ZebraScanEntry **list,
+                          int *is_partial);
 
    
           
@@ -265,5 +265,26 @@ const char *zebra_get_resource(ZebraHandle zh,
 
 YAZ_EXPORT void zebra_pidfname(ZebraService zs, char *path);
 
+typedef struct {
+    char *term;
+    char *db;
+    zint sysno;
+    int score;
+} ZebraMetaRecord;
+
+YAZ_EXPORT
+ZebraMetaRecord *zebra_meta_records_create (ZebraHandle zh,
+                                           const char *name,
+                                           int num, zint *positions);
+
+
+YAZ_EXPORT
+ZebraMetaRecord *zebra_meta_records_create_range (ZebraHandle zh,
+                                                 const char *name, 
+                                                 zint start, int num);
+
+YAZ_EXPORT
+void zebra_meta_records_destroy (ZebraHandle zh, ZebraMetaRecord *records,
+                                int num);
 YAZ_END_CDECL                                
 #endif