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
Rename CHANGELOG to NEWS
[idzebra-moved-to-github.git]
/
test
/
api
/
t4.c
diff --git
a/test/api/t4.c
b/test/api/t4.c
index
9ab82e9
..
5ad4140
100644
(file)
--- a/
test/api/t4.c
+++ b/
test/api/t4.c
@@
-1,5
+1,5
@@
-/* $Id: t4.c,v 1.1 2003-06-18 11:46:34 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
+/* $Id: t4.c,v 1.5 2004-01-22 11:27:22 adam Exp $
+ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
This file is part of the Zebra server.
Index Data Aps
This file is part of the Zebra server.
@@
-34,26
+34,26
@@
int main(int argc, char **argv)
" <title>My title</title>\n"
"</gils>\n";
" <title>My title</title>\n"
"</gils>\n";
- yaz_log_init_file("t3.log");
+ yaz_log_init_file("t4.log");
nmem_init ();
nmem_init ();
- zs = zebra_start("t2.cfg");
+ zs = zebra_start("t2.cfg", 0, 0);
zh = zebra_open (zs);
zebra_select_database(zh, "Default");
zebra_begin_trans (zh, 1);
for (i = 0; i<1200; i++)
zh = zebra_open (zs);
zebra_select_database(zh, "Default");
zebra_begin_trans (zh, 1);
for (i = 0; i<1200; i++)
- zebra_record_insert (zh, myrec, strlen(myrec));
+ zebra_add_record (zh, myrec, strlen(myrec));
zebra_end_trans (zh);
zebra_close(zh);
zebra_stop(zs);
zebra_end_trans (zh);
zebra_close(zh);
zebra_stop(zs);
- zs = zebra_start("t2.cfg");
+ zs = zebra_start("t2.cfg", 0, 0);
zh = zebra_open (zs);
zebra_select_database(zh, "Default");
zh = zebra_open (zs);
zebra_select_database(zh, "Default");
- for (i = 0; i<4; i++)
+ for (i = 0; i<2; i++)
{
ZebraRetrievalRecord retrievalRecord[1001];
char setname[20];
{
ZebraRetrievalRecord retrievalRecord[1001];
char setname[20];
@@
-68,8
+68,6
@@
int main(int argc, char **argv)
sprintf(setname, "s%d", i+1);
zebra_search_RPN (zh, odr_input, query, setname, &hits);
sprintf(setname, "s%d", i+1);
zebra_search_RPN (zh, odr_input, query, setname, &hits);
- printf ("hits=%d\n", hits);
-
yaz_pqf_destroy(parser);
odr_destroy (odr_input);
yaz_pqf_destroy(parser);
odr_destroy (odr_input);