-/* $Id: zebraapi.h,v 1.24 2003-02-11 14:01:39 heikki Exp $
+/* $Id: zebraapi.h,v 1.28 2003-03-04 23:30:20 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
int followLinks;
};
+typedef struct {
+ int processed;
+ int inserted;
+ int updated;
+ int deleted;
+ long utime;
+ long stime;
+} ZebraTransactionStatus;
+
/* Retrieval Record Descriptor */
typedef struct {
int errCode; /* non-zero if error when fetching this */
int len; /* length */
oid_value format; /* record syntax */
char *base;
+ int sysno;
+ int score;
} ZebraRetrievalRecord;
/* Scan Term Descriptor */
/* extra information associated with error */
YAZ_EXPORT char *zebra_errAdd (ZebraHandle zh);
+/* get the result code and addinfo from zh */
+YAZ_EXPORT void zebra_result (ZebraHandle zh, int *code, char **addinfo);
+/* FIXME - why is this needed?? -H */
+
+
/**************
* Searching
*/
const char *recid_buf, size_t recid_len,
int action);
-void zebra_begin_trans (ZebraHandle zh);
+int zebra_begin_trans (ZebraHandle zh, int rw);
void zebra_end_trans (ZebraHandle zh);
+void zebra_end_transaction (ZebraHandle zh, ZebraTransactionStatus *stat);
int zebra_commit (ZebraHandle zh);
YAZ_EXPORT void zebra_set_group (ZebraHandle zh, struct recordGroup *rg);
-YAZ_EXPORT void zebra_result (ZebraHandle zh, int *code, char **addinfo);
-
YAZ_EXPORT int zebra_resultSetTerms (ZebraHandle zh, const char *setname,
int no, int *count,