projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed extract code so that it optimizes updates of records where content
[idzebra-moved-to-github.git]
/
index
/
index.h
diff --git
a/index/index.h
b/index/index.h
index
f890e57
..
32ded3e
100644
(file)
--- a/
index/index.h
+++ b/
index/index.h
@@
-1,4
+1,4
@@
-/* $Id: index.h,v 1.191 2007-01-16 15:01:15 adam Exp $
+/* $Id: index.h,v 1.196 2007-03-14 11:48:32 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
Copyright (C) 1995-2007
Index Data ApS
@@
-199,6
+199,7
@@
struct zebra_session {
char *dbaccesslist;
int errCode;
char *errString;
char *dbaccesslist;
int errCode;
char *errString;
+ int partial_result;
#if HAVE_SYS_TIMES_H
struct tms tms1;
struct tms tms2;
#if HAVE_SYS_TIMES_H
struct tms tms1;
struct tms tms2;
@@
-212,6
+213,7
@@
struct zebra_session {
zint records_updated;
zint records_deleted;
zint records_processed;
zint records_updated;
zint records_deleted;
zint records_processed;
+ zint records_skipped;
char *record_encoding;
yaz_iconv_t iconv_to_utf8;
char *record_encoding;
yaz_iconv_t iconv_to_utf8;
@@
-232,6
+234,9
@@
struct zebra_session {
NMEM nmem_error;
struct zebra_limit *m_limit;
NMEM nmem_error;
struct zebra_limit *m_limit;
+
+ int (*break_handler_func)(void *client_data);
+ void *break_handler_data;
};
};
@@
-286,8
+291,7
@@
ZebraSet resultSetGet(ZebraHandle zh, const char *name);
ZEBRA_RES resultSetAddRPN(ZebraHandle zh, NMEM m, Z_RPNQuery *rpn,
int num_bases, char **basenames,
const char *setname,
ZEBRA_RES resultSetAddRPN(ZebraHandle zh, NMEM m, Z_RPNQuery *rpn,
int num_bases, char **basenames,
const char *setname,
- zint *hits, int *estimated_hit_count,
- int *partial_resultset);
+ zint *hits, int *estimated_hit_count);
RSET resultSetRef(ZebraHandle zh, const char *resultSetId);
void resultSetDestroy(ZebraHandle zh, int num_names, char **names,
int *statuses);
RSET resultSetRef(ZebraHandle zh, const char *resultSetId);
void resultSetDestroy(ZebraHandle zh, int num_names, char **names,
int *statuses);
@@
-316,25
+320,21
@@
void zebra_index_merge(ZebraHandle zh);
ZEBRA_RES zebra_buffer_extract_record(ZebraHandle zh,
const char *buf, size_t buf_size,
ZEBRA_RES zebra_buffer_extract_record(ZebraHandle zh,
const char *buf, size_t buf_size,
- int delete_flag,
+ enum zebra_recctrl_action_t action,
int test_mode,
const char *recordType,
zint *sysno,
const char *match_criteria,
int test_mode,
const char *recordType,
zint *sysno,
const char *match_criteria,
- const char *fname,
- int force_update,
- int allow_update);
+ const char *fname);
ZEBRA_RES zebra_extract_record_stream(ZebraHandle zh,
struct ZebraRecStream *stream,
ZEBRA_RES zebra_extract_record_stream(ZebraHandle zh,
struct ZebraRecStream *stream,
- int delete_flag,
+ enum zebra_recctrl_action_t action,
int test_mode,
const char *recordType,
zint *sysno,
const char *match_criteria,
const char *fname,
int test_mode,
const char *recordType,
zint *sysno,
const char *match_criteria,
const char *fname,
- int force_update,
- int allow_update,
RecType recType,
void *recTypeClientData,
int *more);
RecType recType,
void *recTypeClientData,
int *more);
@@
-412,6
+412,8
@@
ZEBRA_RES zapt_term_to_utf8(ZebraHandle zh, Z_AttributesPlusTerm *zapt,
char *termz);
char *termz);
+void zebra_set_partial_result(ZebraHandle zh);
+
int zebra_check_res(Res res);
#define FIRST_IN_FIELD_STR "\001^"
int zebra_check_res(Res res);
#define FIRST_IN_FIELD_STR "\001^"